Implementation which does not stack-overflows:
let splitList list = List.foldBack (fun x (l,r) -> x::r, l) list ([],[])
More Related Contents:
- Zip with default value instead of dropping values?
- How to cast an object to a list of generic type in F#
- Merging two lists in Haskell
- Linked list partition function and reversed results
- While or Tail Recursion in F#, what to use when?
- Removing syntactic sugar: List comprehension in Haskell
- Prolog union for A U B U C
- How to check if all of the following items are in a list?
- How do I append lists in Prolog?
- What is Haskell’s Stream Fusion
- Using return vs. not using return in the list monad
- Cartesian product of infinite lists in Haskell
- Hide Show content-list with only CSS, no javascript used
- Get number of items from list (or other iterable) with certain condition
- Subsets in Prolog
- Recombining a list of Data.frames into a single data frame [duplicate]
- How do I split or chunk a list into equal parts, with Dart?
- What is the most efficient way to cast a list as a data frame?
- Tail recursive function to find depth of a tree in Ocaml
- “bad words” filter [closed]
- How to extend a Scala list to enable slicing not by explicit position but by given predicate/condition
- Haskell Monad – How does Monad on list work?
- Iterate over pairs in a list (circular fashion) in Python
- Python recursive function to display all subsets of given set
- Erlang lists with single numbers over 8?
- F# development and unit testing? [closed]
- Why does OCaml sometimes require eta expansion?
- Pythonic way to convert a list of integers into a string of comma-separated ranges
- Implementing “last” in Prolog
- Slicing a list into a list of sub-lists [duplicate]