Skip to content
Browse files

[revert] stdlib,function,operators: use expand for function compositi…

…on and pipe"

This reverts commit 07dd8c7.
  • Loading branch information...
1 parent 00fb90f commit 77205c05b5282da5b58b249932e408e741ddb1c1 @Aqua-Ye Aqua-Ye committed Mar 28, 2012
Showing with 5 additions and 5 deletions.
  1. +5 −5 stdlib/core/initial.opa
View
10 stdlib/core/initial.opa
@@ -174,8 +174,8 @@ ignore(_:'a) : void = void
*
* Use it to chain function calls.
*/
-@expand
-`|>`(x,f) = f(x)
+// CAUTION, |> is currently inlined by the compiler using `|>`(a,f) = f(a)
+`|>`(a,f) = f(a)
/**
* Composition
@@ -184,10 +184,10 @@ ignore(_:'a) : void = void
* Use this operator to compose functions for a later call. For instance, [_ + 10 @ _ + 20]
* is the function [x -> x + 30].
*/
-@expand
-`@`(f,g)(x) = f(g(x))
+`@`(f,g) =
+ new_f(x)=f(g(x))
+ new_f
-@expand
`@>`(g, f) = f @ g
compose = `@`

0 comments on commit 77205c0

Please sign in to comment.
Something went wrong with that request. Please try again.