Press CTRL+C or CMD+C to copy the selected text and close this dialog.
Tweet
7 people like it. Like the snippet!
One of the 99 OCaml problems rewritten in F#
1: 2: 3: 4: 5: 6: 7: 8:
let drop list num = let rec dropInner list num i = match list with | [] -> [] | h :: t when i < num -> h :: dropInner t num (i + 1) | _ :: t when i = num -> dropInner t num 1 | _ -> failwith "error" dropInner list num 1