Parcourir la source

Create a custom flip function

DricomDragon il y a 5 ans
Parent
commit
3a4b1c9b6c
1 fichiers modifiés avec 3 ajouts et 0 suppressions
  1. 3 0
      myflip.hs

+ 3 - 0
myflip.hs

@@ -0,0 +1,3 @@
+myflip::(a -> a -> b) -> a -> a -> b
+
+myflip f a1 a2 = f a2 a1