fork(3) download
  1. let uncurry f (x, y) = f x y
  2. let k x y = x
  3. let k' x y = y
  4.  
  5. let fst = uncurry k
  6. let snd = uncurry k'
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
/home/Cyre4v/prog.fs(5,5): error FS0030: Value restriction. The value 'fst' has been inferred to have generic type
    val fst : ('_a * '_b -> '_a)    
Either make the arguments to 'fst' explicit or, if you do not intend for it to be generic, add a type annotation.

/home/Cyre4v/prog.fs(6,5): error FS0030: Value restriction. The value 'snd' has been inferred to have generic type
    val snd : ('_a * '_b -> '_b)    
Either make the arguments to 'snd' explicit or, if you do not intend for it to be generic, add a type annotation.
stdout
Standard output is empty