Fix >= example # [1,2,3]
'[1,2,3] | map(select(. >= 2))' returns [2,3] not [3]
This commit is contained in:
1 parent
6fc18d14f4
commit
ae431b2e59
1 file changed
+1
-1
+1
-1
@@ -1436,7 +1436,7 @@ map(foo) | from_entries</code>, useful for doing some operation to all keys and
|
||||
</h3>
|
||||
<p>The function <code>select(foo)</code> produces its input unchanged if <code>foo</code> returns true for that input, and produces no output otherwise.</p>
|
||||
|
||||
<p>It’s useful for filtering lists: <code>[1,2,3] | map(select(. >= 2))</code> will give you <code>[3]</code>.</p>
|
||||
<p>It’s useful for filtering lists: <code>[1,2,3] | map(select(. >= 2))</code> will give you <code>[2,3]</code>.</p>
|
||||
|
||||
|
||||
<div>
|
||||
|
||||
Reference in new issue
Block a user