Functor
s, then it makes sense that contains
would work on them as well, since they should also be Foldable
(since contains
can be written in terms of reduce
).
contains
to work.
contains
to objects consistent with has
seems contradictory. To do it instead on the values is more likely, but then becomes subject to the discussions @joneshf mentioned, #1429.
R.adjust(R.always(x)
was the closest I found
Right(result)
or Left(errorObject)
: https://gist.github.com/gilligan/66a1ac0431a0e77fdaae - this is not quite right. Can anyone help out ?
(b -> b -> c) -> (a -> b) -> a -> a -> c
it almost writes itself.
const on = curry((f, g, x, y) => f(g(x), g(y)));