Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- let rec eachindex = function
- | [x] -> seq { for i in 0..x-1 -> [i] }
- | x::xs ->
- eachindex xs
- |> Seq.map (fun xs -> seq {for i in 0..x-1 -> i::xs})
- |> Seq.concat
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement