aboutsummaryrefslogtreecommitdiff
path: root/tests/lang/lib.nix
AgeCommit message (Collapse)Author
2015-07-28Add primop genListEelco Dolstra
This can be used to implement functions like ‘imap’ (or for that matter, ‘map’) without the quadratic complexity incurred by calling ‘++’ repeatedly.
2015-07-23Add foldl' primopEelco Dolstra
2014-02-26Test some more primopsEelco Dolstra
2013-08-02Add integer ‘-’, ‘*’ and ‘/’ operatorsEelco Dolstra
2008-07-11* Generalised the dependencyClosure primop to builtins.genericClosure,Eelco Dolstra
which is hopefully more useful. * New primops: length, mul, div.
2008-07-01* Export the nix-env derivation name parsing and version comparisonEelco Dolstra
logic through the `parseDrvName' and `compareVersions' primops. This will allow expressions to easily check whether some dependency is a specific needed version or falls in some version range. See tests/lang/eval-okay-versions.nix for examples.
2007-01-29New primitives:Eelco Dolstra
* `sub' to subtract two numbers. * `stringLength' to get the length of a string. * `substring' to get a substring of a string. These should be enough to allow most string operations to be expressed.
2006-09-22* Builtin function `add' to add integers.Eelco Dolstra
* Put common test functions in tests/lang/lib.nix.