This website requires JavaScript.
Explore
Help
Sign In
lix-project
/
lix
Watch
20
Star
55
Fork
You've already forked lix
31
Code
Issues
344
Code Review (Gerrit)
Projects
3
Releases
Wiki
Activity
909d8cb293
lix
/
tests
/
lang
/
eval-okay-list.nix
7 lines
81 B
Nix
Raw
Normal View
History
Unescape
Escape
* Builtin function `add' to add integers. * Put common test functions in tests/lang/lib.nix.
2006-09-22 15:29:21 +00:00
with
import
./lib.nix
;
* 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).
2006-09-22 14:46:36 +00:00
* Builtin function `add' to add integers. * Put common test functions in tests/lang/lib.nix.
2006-09-22 15:29:21 +00:00
let
{
* 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).
2006-09-22 14:46:36 +00:00
body
=
concat
[
"
f
o
o
"
"
b
a
r
"
"
b
l
a
"
"
t
e
s
t
"
]
;
}
Reference in a new issue
Copy permalink