We should have a deep comparison mode for std.algorithm.comparison.equal, how about "equals"?
Reason: `equal!(equal!equal) is quite annoying over time ;-)
E.g.
[[2,2],[1,2]].equals([[2,2],[1,2])
Comment #1 by per.nordlow — 2016-05-06T11:21:53Z
Typo:
Should be
[[2,2],[1,2]].equals([[2,2],[1,2]])
So this means comparing ranges of ranges, right?
Comment #2 by per.nordlow — 2016-05-06T11:24:26Z
Note that
[[2,2],[1,2]].equals([[2,2],[1,2]])
currently works because arrays can be compared with ==.
Example needs to replaced with range of range (RoR) example.
Comment #3 by per.nordlow — 2016-05-06T11:27:26Z
Correction:
[[2,2],[1,2]].equal([[2,2],[1,2]])
currently works (without the s).
Comment #4 by robert.schadek — 2024-12-01T16:26:37Z