filter -> filterAttrs
This commit is contained in:
parent
9f609b5786
commit
c84617c972
@ -6,7 +6,7 @@ let
|
|||||||
|
|
||||||
sievePath = let
|
sievePath = let
|
||||||
isRegularFile = _: type: type == "regular";
|
isRegularFile = _: type: type == "regular";
|
||||||
sieves = filter isRegularFile (builtins.readDir ./sieves);
|
sieves = filterAttrs isRegularFile (builtins.readDir ./sieves);
|
||||||
headOrNull = lst: if lst == [ ] then null else head lst;
|
headOrNull = lst: if lst == [ ] then null else head lst;
|
||||||
stripExt = ext: filename: headOrNull (match "(.+)[.]${ext}$" filename);
|
stripExt = ext: filename: headOrNull (match "(.+)[.]${ext}$" filename);
|
||||||
compileFile = filename:
|
compileFile = filename:
|
||||||
|
Loading…
Reference in New Issue
Block a user