"be consistent" | |
PerlMonks |
Re^3: Haskell vs Perl 6 (was Re: Capturing parenthesis and grouping square brackets)by raiph (Deacon) |
on Jul 04, 2013 at 15:27 UTC ( [id://1042474]=note: print w/replies, xml ) | Need Help?? |
I'd add a note saying something like "While the code looks like the two trees are flattened to lists first and then compared, Haskell is lazy, which means that behind the scenes it will only do as much work as it has to and stop flattening once it finds the first mismatch. Simply don't worry about it. It works."
Update: I was wrong. Apologies to Jenda.
In Section
Meditations
|
|