On 4/26/13 4:15 PM, bearophile wrote:
Tyro[17]:
> While flip2 does:
>
> flip2!foo(a, b, c) === foo(b, a, c)
> flip2!foo(a, b, c, d) === foo(b, a, c, d)
and this rotate....
Really? Just swapping the first two arguments and leaving the others at
their place is for a "rotate"?
Actually, by brain was thinking it but my eyes saw something completely
different. You are correct, this what I would expect flip to do. Thanks.
Why flip in the first place?
I don't know, it's the name used in the Haskell Prelude.
Bye,
bearophile