20 people like it.

Caching the function object created

Caching the function object created

1: 
2: 
3: 
    let inline (!>) f = () |> fun () -> f
    let x a b = a + b
    let x_arg = !> x
val f : 'a
val x : a:int -> b:int -> int

Full name: Script.x
val a : int
val b : int
val x_arg : (int -> int -> int)

Full name: Script.x_arg

More information

Link:http://fssnip.net/2O
Posted:13 years ago
Author:fholm
Tags: functions , fast , operator