mirror of
https://github.com/NixOS/nix
synced 2025-07-10 04:43:53 +02:00
* Builtin functions head' and
tail' to return the head and tail of
list. Useful for lots of things, such as implementing a fold function (see NIX-30, example is in tests/lang/eval-okay-list.nix).
This commit is contained in:
parent
8a1ab709a4
commit
c02a44183f
3 changed files with 39 additions and 0 deletions
1
tests/lang/eval-okay-list.exp
Normal file
1
tests/lang/eval-okay-list.exp
Normal file
|
@ -0,0 +1 @@
|
|||
Str("foobarblatest")
|
Loading…
Add table
Add a link
Reference in a new issue