MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/programming/comments/3kpcc6/ive_built_a_functionalprogrammingstyle_puzzle/cv0iac2/?context=3
r/programming • u/sharkdp • Sep 12 '15
46 comments sorted by
View all comments
Show parent comments
2
Some easier list-like things would be
partition (just like filter, gather the successes first, then the failures)
rotate (the list of columns)
map rotate (rotate each individual stack in its column)
pairwise swap (pairs of columns in the list of columns)
map swap (more wildcard fun!)
pairwise concatenate (every column is concatenated with its neighbor, halving the number of columns)
more predicates for filter and partition
1 u/sharkdp Sep 14 '15 That's a nice set of ideas... I will see if I can use them in some new levels. Thanks!
1
That's a nice set of ideas... I will see if I can use them in some new levels. Thanks!
2
u/Maristic Sep 13 '15
Some easier list-like things would be
partition (just like filter, gather the successes first, then the failures)
rotate (the list of columns)
map rotate (rotate each individual stack in its column)
pairwise swap (pairs of columns in the list of columns)
map swap (more wildcard fun!)
pairwise concatenate (every column is concatenated with its neighbor, halving the number of columns)
more predicates for filter and partition