Timeline for Tips for golfing in Haskell
Current License: CC BY-SA 3.0
8 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
May 12, 2018 at 17:11 | comment | added | Angs |
Sometimes it's beneficial to change unary functions to binary operators if you'd otherwise have to use parentheses - g x=…;g(f x) is longer than _?x=…;0!f x
|
|
Nov 12, 2017 at 3:13 | comment | added | Esolanging Fruit |
This can also be used for function arguments, e.g. \f g(!)x y->f g!x y instead of \f g j x y->j(f g)(x y)
|
|
Oct 15, 2015 at 13:35 | comment | added | Zgarb |
Note: this can also be used for functions with three or more arguments. (x!y)z=x+y*z and (x#y)z u=x*z+y*u both work as expected.
|
|
Aug 23, 2015 at 1:38 | history | edited | lynn | CC BY-SA 3.0 |
specify which operators are free
|
Feb 20, 2015 at 2:51 | history | wiki removed | Doorknob | ||
Jan 23, 2014 at 20:14 | vote | accept | Animesh 'the CODER' | ||
Jan 23, 2014 at 20:14 | |||||
Jan 23, 2014 at 20:10 | history | edited | shiona | CC BY-SA 3.0 |
added 8 characters in body
|
Jan 23, 2014 at 20:00 | history | answered | shiona | CC BY-SA 3.0 |