re: Pure functions, and why I like them. VIEW POST

FULL DISCUSSION
 

Nice.
A curried version of isOverLimit would be even nicer though. Then you could define
isOverGoldLimit = isOverLimit(1000)

 

Sure, but the example would be more complicated for anyone who isn't familiar with basic FP concepts, and this was intentionally as basic as possible. :-)

 
code of conduct - report abuse