Re:A Year in Clojure
by ff_ on Sunday October 07, 2018 @01:16PM
(#18161603)
Also the + operator is typed with Num; from a Haskell repl:
In case of average we need /:
So our type is going to be constrained by Fractional instead of Num). So an implementation could be (from here [1]):
[1]: https://stackoverflow.com/questions/2376981
[ Parent
| on HN ]
There are no comments on this comment yet.