Clojure Flip
- 1 minRecently, I found myself in need of a flip function in Clojure. Since I could not find anything in the official documentation, Stackoverflow, or Freenode, I came up with this:
Its behavior can be described like this (assuming Midje):
Please, let me know in case you have a simpler solution ;)