Quantcast
Channel: ReScript Forum - Latest posts
Viewing all articles
Browse latest Browse all 1991

How can I implement Order from Effect-ts

$
0
0

I would just do this:

let map = (order, getter) => (self, other) => order(getter(self), getter(other))

Playground link

I’d be cautious about using == for make, why not using the properties of ordering instead as I did in the playground instead?


Viewing all articles
Browse latest Browse all 1991