List equality

Issue #163 resolved
Turgut Guneysu created an issue

Following code blocks evaluate to false:

Comments (7)

  1. John Maloney repo owner

    This is worth thinking about. It would need to be recursive to handle lists inside of lists, and a recursive implementation would need to protect itself against circular data structures.

    But perhaps a non-recursive implementation would be better than nothing. That would deal the case above and probably 95% of beginner situations. And those advanced enough to build more complex data structures could write their own recursive equality test.

  2. John Maloney repo owner

    Clever idea!

    But inspired me to add a "list _ equals _" block to the list library that does a fully recursive list comparison. That will be in the next pilot release.

  3. Log in to comment