Does anyone know of a good name for flip (.)
that doesn't collide with lens
or base
(at least the commonly used subset of it)?
Please provide your answers as answers, not as comments (even if they are very short).
Join Stack Overflow to learn, share knowledge, and build your career.
Does anyone know of a good name for flip (.)
that doesn't collide with lens
or base
(at least the commonly used subset of it)?
Please provide your answers as answers, not as comments (even if they are very short).
>>>
from Control.Arrow
|>
is also a good candidate, from F#
>>
is flip (.)
while |>
is flip ($)
(aka (&)
from package lens).
– Luc Danton
Aug 30 '14 at 23:55
|>
was from F# (@LucDanton IMO using it here for a slightly different meaning is fine)
– fread2281
Aug 31 '14 at 1:38
I used to use .>
for flip (.)
(and |>
for flip ($)
) many years ago, but eventually I got over it and learned to use the standard operators. I think it's a mistake to look for a single character for it, and today would use >>>
from Control.Arrow.
(&)
isflip ($)
. – Ørjan Johansen Aug 30 '14 at 23:34(<&>)
does fit though. – Ørjan Johansen Aug 30 '14 at 23:37