Higher-order functions like map(f, obj) usually put the data argument last. In Accessors, it's usually hof(obj, optic, val) or modify(f, obj, optic) where the data argument comes earlier, which I didn't expect. I'm interested what explains this decision?
Higher-order functions like
map(f, obj)
usually put the data argument last. In Accessors, it's usuallyhof(obj, optic, val)
ormodify(f, obj, optic)
where the data argument comes earlier, which I didn't expect. I'm interested what explains this decision?