Skip to content

Commit 53ca04d

Browse files
committed
imp: add combinator
```nix { foo = combine (update [0] ["bar"]) (append ["qux"]); } ```
1 parent 0bbe0a6 commit 53ca04d

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

Diff for: flake.nix

+6
Original file line numberDiff line numberDiff line change
@@ -187,6 +187,12 @@
187187
append = new: orig: here: orig ++ (list any new);
188188
# ------
189189

190+
# ------
191+
# combine
192+
# ------
193+
combine = first: second: orig: here: (function second) ((function first) orig here) orig here;
194+
# ------
195+
190196
# ------
191197
# update
192198
# ------

0 commit comments

Comments
 (0)