We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5fd8b7c commit dd2a458Copy full SHA for dd2a458
book/types_of_data.md
@@ -247,12 +247,12 @@ let cp = $.2
247
248
Simple example:
249
250
-This closure returns a boolean result of the comparison and then uses it in a `filter` command to return all values greater than 5.
+This closure returns a boolean result of the comparison and then uses it in a `where` command to return all values greater than 5.
251
252
```nu
253
let compare_closure = {|a| $a > 5 }
254
let original_list = [ 40 -4 0 8 12 16 -16 ]
255
-$original_list | filter $compare_closure
+$original_list | where $compare_closure
256
# => ╭───┬────╮
257
# => │ 0 │ 40 │
258
# => │ 1 │ 8 │
0 commit comments