[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
11/376: Rephrase @ operator description
From: |
Ludovic Courtès |
Subject: |
11/376: Rephrase @ operator description |
Date: |
Wed, 28 Jan 2015 22:03:42 +0000 |
civodul pushed a commit to tag 1.8
in repository guix.
commit 8ea9fd7aa6b2152f95724e504ac61c57d90b113c
Author: Adam Szkoda <address@hidden>
Date: Sun May 25 10:54:54 2014 +0200
Rephrase @ operator description
---
doc/manual/writing-nix-expressions.xml | 7 +++----
1 files changed, 3 insertions(+), 4 deletions(-)
diff --git a/doc/manual/writing-nix-expressions.xml
b/doc/manual/writing-nix-expressions.xml
index 5585e89..6db2adc 100644
--- a/doc/manual/writing-nix-expressions.xml
+++ b/doc/manual/writing-nix-expressions.xml
@@ -1060,15 +1060,14 @@ map (concat "foo") [ "bar" "bla" "abc"
]</programlisting>
and <varname>z</varname>.</para></listitem>
- <listitem><para>An <literal>@</literal>-pattern requires that the
- argument matches with the patterns on the left- and right-hand side
- of the <literal>@</literal>-sign. For example:
+ <listitem><para>An <literal>@</literal>-pattern provides a means of referring
+ to the whole value being matched:
<programlisting>
address@hidden x, y, z, ... }: z + y + x + args.a</programlisting>
Here <varname>args</varname> is bound to the entire argument, which
- is further matches against the pattern <literal>{ x, y, z,
+ is further matched against the pattern <literal>{ x, y, z,
... }</literal>.</para></listitem>
- tag 1.8 created (now c238405), Ludovic Courtès, 2015/01/28
- 01/376: Provide a more useful error message when a dynamic attr lookup fails, Ludovic Courtès, 2015/01/28
- 05/376: Shut up some signedness warnings, Ludovic Courtès, 2015/01/28
- 04/376: Ugly hack to allow --argstr values starting with a dash, Ludovic Courtès, 2015/01/28
- 06/376: Add primop ‘scopedImport’, Ludovic Courtès, 2015/01/28
- 08/376: Ensure that -I flags get included in nixPath, Ludovic Courtès, 2015/01/28
- 11/376: Rephrase @ operator description,
Ludovic Courtès <=
- 12/376: dev-shell is a bash script, not sh, Ludovic Courtès, 2015/01/28
- 09/376: Make the Nix search path declarative, Ludovic Courtès, 2015/01/28
- 03/376: Disable parallel.sh test, Ludovic Courtès, 2015/01/28
- 10/376: Remove ExprBuiltin, Ludovic Courtès, 2015/01/28
- 02/376: nix-store -l: Fetch build logs from the Internet, Ludovic Courtès, 2015/01/28
- 13/376: nix-build: --add-root also takes 1 parameter, Ludovic Courtès, 2015/01/28
- 07/376: Add constant ‘nixPath’, Ludovic Courtès, 2015/01/28
- 17/376: nix-env -qa --json: Generate valid JSON even if there are invalid meta attrs, Ludovic Courtès, 2015/01/28
- 14/376: Use std::unordered_set, Ludovic Courtès, 2015/01/28
- 15/376: Sort nixPath attributes, Ludovic Courtès, 2015/01/28