[nem-en] extra list operations

Ivan Lakhturov lakhturov at gmail.com
Sat Dec 30 09:54:54 CET 2006


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




More information about the devel-en mailing list