[erlang-questions] Can I do the same with a fold easily

Kevin Montuori <>
Sun Oct 18 22:49:49 CEST 2015


>>>>> "rw" == Roelof Wobben <> writes:

  rw> Could I this also do with a fold or is this the best solution.

I think lists:partition/2 would be the best choice.  I know you're
running through some exercies and all the fabricated drudgery that
entails but taking a look at the source for partition/2 might help you
along.


k.

-- 
  Kevin Montuori
  


More information about the erlang-questions mailing list