R.nthArg
might be cheating a little, depending on your rules of points-free golf :D
Boolean(a || b)
makes sense. One of the properties of (<|>)
is that the return value is always one of the inputs. The operation represents a choice between two possibilities. It would not make sense for 0 <|> 1
to evaluate to True
. That's my view, at any rate.
Returns true if one or both of its arguments are true. Returns false if both arguments are false.
R.or(a,b)
to pick a or b and someone commented "hey this should not work. R.or is documented to return true or false. You should use something else and file an upstream ticket" ;)