Chris Martin
|
2a8f09a8c1
|
Add builtins.concatStringSep to the manual
|
2017-12-11 14:28:03 -05:00 |
|
Zoran Plesivčak
|
ae506c1ea4
|
Mention isFloat function in "Built-in Functions" section
|
2017-11-01 23:00:08 +00:00 |
|
Zoran Plesivčak
|
3050395810
|
Mention "float" type in builtins.typeOf section of the docs
+ remove trailing whitespace from the file
|
2017-11-01 21:36:25 +00:00 |
|
Eelco Dolstra
|
2ee1b9359b
|
Merge branch 'tokenize' of https://github.com/nbp/nix
|
2017-08-16 21:21:36 +02:00 |
|
Nicolas B. Pierron
|
b8867a0239
|
Add builtins.string function.
The function 'builtins.split' takes a POSIX extended regular expression
and an arbitrary string. It returns a list of non-matching substring
interleaved by lists of matched groups of the regular expression.
```nix
with builtins;
assert split "(a)b" "abc" == [ "" [ "a" ] "c" ];
assert split "([ac])" "abc" == [ "" [ "a" ] "b" [ "c" ] "" ];
assert split "(a)|(c)" "abc" == [ "" [ "a" null ] "b" [ null "c" ] "" ];
assert split "([[:upper:]]+)" " FOO "
== [ " " [ "FOO" ] " " ];
```
|
2017-08-15 20:04:11 +00:00 |
|
Nicolas B. Pierron
|
27417c6160
|
Move builtins.match documentation between map and mul.
|
2017-08-15 18:34:24 +00:00 |
|
Harmen
|
1e0f59ae14
|
use sha256 hashes in the examples
And fix a dead link.
|
2017-07-15 21:06:30 +02:00 |
|
Pyry Jahkola
|
370428f86d
|
Remove stray > in builtins doc
|
2017-05-28 20:47:35 +03:00 |
|
Eelco Dolstra
|
b303ad012c
|
Merge pull request #1382 from FRidh/patch-1
Document fetchTarball can take a sha256
|
2017-05-24 11:07:36 +02:00 |
|
Eelco Dolstra
|
f134fc4cbe
|
Document that builtins.match takes a POSIX extended RE
|
2017-05-17 12:18:18 +02:00 |
|
Frederik Rietdijk
|
2b2de5ef6a
|
Document fetchTarball can take a sha256
Note that I refer to `nix-prefetch-url`.
|
2017-05-11 13:38:13 +02:00 |
|
Eelco Dolstra
|
1fd59447d5
|
Typo
|
2017-05-10 18:38:17 +02:00 |
|
Domen Kožar
|
82a9c93c7f
|
doc: builtins.attrNames returns alphabetically sorted list
|
2017-05-10 11:23:12 +02:00 |
|
Linus Heckemann
|
9622d00afa
|
Manual: document tryEval
|
2017-04-17 10:33:53 +01:00 |
|
Eelco Dolstra
|
79f4583f8a
|
Fix XML validity
|
2017-02-21 13:04:31 +01:00 |
|
Linus Heckemann
|
b8564987a3
|
Document toString better
|
2017-02-20 14:23:48 +00:00 |
|
Domen Kožar
|
41d6523ef5
|
Document builtins.match, fixes #1145
|
2016-12-09 20:40:55 +01:00 |
|
Jonas Chevalier
|
7d7ec2b3a8
|
Document the { __toString } interface
|
2016-09-21 14:52:26 +01:00 |
|
Domen Kožar
|
ed39532dda
|
doc: add an example for builtins.substring
|
2016-08-11 12:32:24 +02:00 |
|
Domen Kožar
|
9a1320af29
|
s/powerpc-darwin/x86_64-darwin/
Let's step in line with time and document more realistic values.
|
2016-08-10 18:42:55 +02:00 |
|
Eelco Dolstra
|
b3e8d72770
|
Merge pull request #762 from ctheune/ctheune-floats
Implement floats
|
2016-02-12 12:49:59 +01:00 |
|
Christian Theune
|
b4bda4765a
|
Update documentation for floats.
|
2016-01-06 08:41:53 +01:00 |
|
Vladimír Čunát
|
29c0199d5c
|
manual: document builtins.functionArgs
The text is just a conversion of comment from src/libexpr/primops.cc
|
2016-01-05 13:29:17 +01:00 |
|
Eelco Dolstra
|
ce97523a7c
|
Fix readDir example
Fixes https://github.com/NixOS/nixos-homepage/issues/46.
|
2015-09-01 16:53:51 +02:00 |
|
Eelco Dolstra
|
76cc8e97a2
|
Add sort primop
|
2015-07-28 18:39:39 +02:00 |
|
Eelco Dolstra
|
50807f3dd5
|
Add primop genList
This can be used to implement functions like ‘imap’ (or for that
matter, ‘map’) without the quadratic complexity incurred by calling
‘++’ repeatedly.
|
2015-07-28 17:28:35 +02:00 |
|
Eelco Dolstra
|
d6d5885c15
|
Add replaceStrings primop
This is a generalisation of replaceChars in Nixpkgs.
|
2015-07-24 15:32:24 +02:00 |
|
Eelco Dolstra
|
14be783676
|
Add primops all and any
These are used thousands of times during NixOS evaluation, so it's
useful to speed them up.
|
2015-07-23 19:23:11 +02:00 |
|
Eelco Dolstra
|
61af14a921
|
Add foldl' primop
|
2015-07-23 17:03:02 +02:00 |
|
Eelco Dolstra
|
da196ec68f
|
Document tarball downloading
|
2015-06-01 15:14:44 +02:00 |
|
Eelco Dolstra
|
722bd041ce
|
Document some primops
|
2014-10-29 16:18:03 +01:00 |
|
Mikey Ariel
|
8901acc976
|
Restructuring the Nix manual
|
2014-08-27 18:41:09 +02:00 |
|