Commit 9e724f6e authored by Committed by Marge BotBrowse files
Small ZipList optimisation
In (<|>) for ZipList, avoid processing the first argument twice (both as first argument of (++) and for its length in drop count of the second argument). Previously, the entire first argument was forced into memory, now (<|>) can run in constant space even with long inputs.
Showing with 6 additions and 2 deletions