[Haskell-cafe] flip1 through flip9, useful?

Christian Marie christian at ponies.io
Tue Jan 14 05:48:23 UTC 2014

I have defined a bunch of functions like this:

	-- | Move the fourth argument to the first place
	rotate4 :: (a -> b -> c -> d -> e) -> (d -> a -> b -> c -> e)

	-- | Reverse four arguments
	flip4 :: (a -> b -> c -> d -> e) -> (d -> c -> b -> a -> e)

I decided to upload this as a library to hackage, as I personally find it
useful, especially for writing FFI bindings.

It seems like I can't be the first to write a library like this though, am I
missing something obvious? Is this useful or stupid? Does it exist already?

Full definition here:


-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: not available
URL: <http://www.haskell.org/pipermail/haskell-cafe/attachments/20140114/2fd4fa61/attachment.sig>

More information about the Haskell-Cafe mailing list