by wodenokoto · 5y ago · 0 comments
I get the map and filter operations but I can’t remember ever coming across a function like that before.
The game's "stack equal columns" corresponds to Haskell's Data.List.group function:
> import Data.List
> group [1,2,2,3,3,3,2,1,1]
[[1],[2,2],[3,3,3],[2],[1,1]]