4 ms·
My try on a more 'idiomatic' haskell version : https://gist.github.com/arianvp/6814753 https://gist.github.com/arianvp/6814753 I have no idea what the inputs n
by arianvanp 13y ago
My try on a more 'idiomatic' haskell version : https://gist.github.com/arianvp/6814753 https://gist.github.com/arianvp/6814753
I have no idea what the inputs need to be. I coded by types. Code compiles but has never been tested but probably works. (Ha, gotta love haskell)
edit: Think it works
- tel 13y agoThe list comprehension is great, but man is prefix ((.).(.)) scary. I always rename that to (.:), use it infix, define it pointfully, and comment calling it "two-argument compose".