Fix >= example # [1,2,3]

'[1,2,3] | map(select(. >= 2))' returns [2,3] not [3]
This commit is contained in:
Ryan Braganza committed 2014-02-21 03:10:47 -08:00
1 parent 6fc18d14f4
commit ae431b2e59
1 file changed
+1 -1
+1 -1
View File
@@ -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&#8217;s useful for filtering lists: <code>[1,2,3] | map(select(. &gt;= 2))</code> will give you <code>[3]</code>.</p>
<p>It&#8217;s useful for filtering lists: <code>[1,2,3] | map(select(. &gt;= 2))</code> will give you <code>[2,3]</code>.</p>
<div>