Hello devel-en,
a dude from rsdn asked to add
public IterRest[T](lst: list[T], f: T * list[T] -> void): void
{
match(lst)
{
| x :: xs => f(x, xs); IterRest(xs, f)
| _ => ()
}
}
to nemerle library (lists.n)
is this operation seemed useful?
he'd also like to see in lists the following operations:
FoldRest
IndexOf
(and posted code)
regards, phantom