Advertisement
Ludwiq

Untitled

May 13th, 2016
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
F# 0.16 KB | None | 0 0
  1. let objectsToTake = 10
  2.  
  3. [1;2;3;4;5]
  4.     |> List.toSeq
  5.     |> fun x ->
  6.         if objectsToTake>0 then x |> Seq.take objectsToTake
  7.         else x |> fun y -> x
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement