Skip to content

Commit

Permalink
imp: add combinator
Browse files Browse the repository at this point in the history
```nix
{
  foo = combine (update [0] ["bar"]) (append ["qux"]);
}

```
  • Loading branch information
blaggacao committed Jun 22, 2022
1 parent 0bbe0a6 commit 53ca04d
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,12 @@
append = new: orig: here: orig ++ (list any new);
# ------

# ------
# combine
# ------
combine = first: second: orig: here: (function second) ((function first) orig here) orig here;
# ------

# ------
# update
# ------
Expand Down

0 comments on commit 53ca04d

Please sign in to comment.