Closed straight-shoota closed 2 years ago
This is a performance improvement. partition doesn't allocate an array.
partition
As a side effect, this also gets rid of rescuing IndexError (cf https://github.com/crystal-lang/crystal/issues/11565#issuecomment-1003040007).
IndexError
Nice
This is a performance improvement.
partition
doesn't allocate an array.As a side effect, this also gets rid of rescuing
IndexError
(cf https://github.com/crystal-lang/crystal/issues/11565#issuecomment-1003040007).