On 12/12/2012 11:07 AM, Eelco Dolstra wrote:
> Hi,
>
> On 12/12/12 03:28, Florian Friesdorf wrote:
>
>>>    * New primops: concatLists, elem, elemAt and filter.
>> The elem library function evaluates all list elements instead of
>> returning "true" after finding a matching element.
> Sure about that?  This seems lazy enough:
>
>    elem =
>      builtins.elem or
>      (x: list: fold (a: bs: x == a || bs) false list);
>
Shouldn't the bs come first? i.e. (a: bs: bs || x == a)?
_______________________________________________
nix-dev mailing list
[email protected]
http://lists.science.uu.nl/mailman/listinfo/nix-dev

Reply via email to