1: { lib }: 2: 3: with builtins; 4: with lib; 5: f: z: attrs: 6: fold (name: f name (getAttr name attrs)) z (attrNames attrs)