summaryrefslogtreecommitdiffhomepage
path: root/nix.html.markdown
diff options
context:
space:
mode:
authorJulien M'Poy <julien.mpoy@gmail.com>2017-11-08 13:29:24 +0100
committerJulien M'Poy <julien.mpoy@gmail.com>2017-11-08 13:29:24 +0100
commit5e81853768c0f3cc55c05e0dfec18773045df952 (patch)
treeb62c3fb0bfc6de3318e962b330e163f3d65cdfa6 /nix.html.markdown
parent20893f5d83b4f7a1585bac9e7656d6af46183262 (diff)
parent6ce71c56d6affb57a3537a2732485a4918306d4b (diff)
Merge remote-tracking branch 'upstream/master'
Diffstat (limited to 'nix.html.markdown')
-rw-r--r--nix.html.markdown6
1 files changed, 6 insertions, 0 deletions
diff --git a/nix.html.markdown b/nix.html.markdown
index ef59a135..ba122a46 100644
--- a/nix.html.markdown
+++ b/nix.html.markdown
@@ -208,6 +208,12 @@ with builtins; [
{ a = 1; b = 2; }.a
#=> 1
+ # The ? operator tests whether a key is present in a set.
+ ({ a = 1; b = 2; } ? a)
+ #=> true
+ ({ a = 1; b = 2; } ? c)
+ #=> false
+
# The // operator merges two sets.
({ a = 1; } // { b = 2; })
#=> { a = 1; b = 2; }