« first day (84 days earlier)      last day (1879 days later) » 

11:50 PM
30
Q: Number triangle flip

xnorSay you list the positive integers in a triangle, then flip it left-to-right. Given a number, output the number it's sent to. This is a self-inverse mapping. 1 1 2 3 3 2 4 5 6 <---> 6 5 4 7 8 ...

I haven't seen any other Haskell golfer's on this question. Can anyone beat 34 bytes?
 

« first day (84 days earlier)      last day (1879 days later) »