on master help sign in
(.) should reduce with only two arguments
e6d1cfdEdwin Brady
libs/prelude/Prelude/Basics.idr+1−1
@@ -31,7 +31,7 @@ infixl 9 .
31
31
32||| Function composition
32||| Function composition
33(.) : (b -> c) -> (a -> b) -> a -> c
33(.) : (b -> c) -> (a -> b) -> a -> c
34−(.) f g x = f (g x)
34+(.) f g = \x => f (g x)
35
35
36||| Takes in the first two arguments in reverse order.
36||| Takes in the first two arguments in reverse order.
37||| @ f the function to flip
37||| @ f the function to flip