aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEelco Dolstra <eelco.dolstra@logicblox.com>2017-12-12 11:46:10 +0100
committerGitHub <noreply@github.com>2017-12-12 11:46:10 +0100
commite3c19ff9bcbcaf2ec8e7c3d7f964e8d8aefaea43 (patch)
tree1dc53ed9a15e6f9f9e0830c1f733c666dbbf6c0a
parent06d4566c2d3662f86905f3925f5c4620e142efef (diff)
parent2a8f09a8c12246d52a3a0443b4bc9d87a632e98e (diff)
Merge pull request #1725 from chris-martin/pr/concatStringsSep
Add builtins.concatStringSep to the manual
-rw-r--r--doc/manual/expressions/builtins.xml8
1 files changed, 8 insertions, 0 deletions
diff --git a/doc/manual/expressions/builtins.xml b/doc/manual/expressions/builtins.xml
index 5e88b8856..5a3a8645c 100644
--- a/doc/manual/expressions/builtins.xml
+++ b/doc/manual/expressions/builtins.xml
@@ -134,6 +134,14 @@ if builtins ? getEnv then builtins.getEnv "PATH" else ""</programlisting>
</varlistentry>
+ <varlistentry><term><function>builtins.concatStringsSep</function>
+ <replaceable>separator</replaceable> <replaceable>list</replaceable></term>
+
+ <listitem><para>Concatenate a list of strings with a separator
+ between each element, e.g. <literal>concatStringsSep "/"
+ ["usr" "local" "bin"] == "usr/local/bin"</literal></para></listitem>
+
+ </varlistentry>
<varlistentry
xml:id='builtin-currentSystem'><term><varname>builtins.currentSystem</varname></term>