On 2011-02-03, at 11:06 , Joseph Wayne Norton wrote: > Try the following ... > > 5> lists:partition(fun(A)-> A<3 end,[1,2,3,4,5]). > {[1,2],[3,4,5]} > But remember that lists:partition's semantics are based on those of lists:filter, not lists:takewhile and lists:dropwhile