lazyGenericClosure
lib.lazyGenericClosure
Docs pulled from | This Revision | 18 minutes ago
Deprecated
Contribute
Enhance the ecosystem with your expertise! Contribute to fill the gaps in documentation. Your input can make a difference.
Noogle detected
Implementation
The following is the current implementation of this function.
{ startSet, operator }:
let
work =
list: doneKeys: result:
if list == [ ] then
result
else
let
x = head list;
key = x.key;
in
if elem key doneKeys then
work (tail list) doneKeys result
else
work (tail list ++ operator x) ([ key ] ++ doneKeys) ([ x ] ++ result);
in
work startSet [ ] [ ]