mirror of
https://github.com/mjallen18/snowfall-lib.git
synced 2026-04-18 09:05:58 -05:00
fold -> foldr
This commit is contained in:
@@ -24,7 +24,7 @@ let
|
|||||||
fix
|
fix
|
||||||
filterAttrs
|
filterAttrs
|
||||||
mergeAttrs
|
mergeAttrs
|
||||||
fold
|
foldr
|
||||||
recursiveUpdate
|
recursiveUpdate
|
||||||
callPackageWith
|
callPackageWith
|
||||||
isFunction
|
isFunction
|
||||||
@@ -34,13 +34,13 @@ let
|
|||||||
# Type: [Attrs] -> Attrs
|
# Type: [Attrs] -> Attrs
|
||||||
# Usage: merge-deep [{ x = 1; } { x = 2; }]
|
# Usage: merge-deep [{ x = 1; } { x = 2; }]
|
||||||
# result: { x = 2; }
|
# result: { x = 2; }
|
||||||
merge-deep = fold recursiveUpdate { };
|
merge-deep = foldr recursiveUpdate { };
|
||||||
|
|
||||||
# Merge the root of a list of attribute sets.
|
# Merge the root of a list of attribute sets.
|
||||||
# Type: [Attrs] -> Attrs
|
# Type: [Attrs] -> Attrs
|
||||||
# Usage: merge-shallow [{ x = 1; } { x = 2; }]
|
# Usage: merge-shallow [{ x = 1; } { x = 2; }]
|
||||||
# result: { x = 2; }
|
# result: { x = 2; }
|
||||||
merge-shallow = fold mergeAttrs { };
|
merge-shallow = foldr mergeAttrs { };
|
||||||
|
|
||||||
# Transform an attribute set of inputs into an attribute set where
|
# Transform an attribute set of inputs into an attribute set where
|
||||||
# the values are the inputs' `lib` attribute. Entries without a `lib`
|
# the values are the inputs' `lib` attribute. Entries without a `lib`
|
||||||
|
|||||||
Reference in New Issue
Block a user