4 ms·
TBF he has such notion: > because a 0 arity function without side-effect is just constant.
by bvrmn 2y ago
TBF he has such notion:
> because a 0 arity function without side-effect is just constant.
- pyrale 2y agon-arity functions are also constants. 0 is not a special case there. Their behaviour won't change depending on the context from which you call them. A large part of FP is that functions _are_ values.