mirror of
https://github.com/nushell/nushell.git
synced 2025-05-20 01:40:47 +02:00
# Description This PR add 2 new operators, `has` and `not-has`. They are basically `in` and `not-in` with the order of operands swapped. Motivation for this was the awkward way of searching for rows that contain an item using `where` ```nushell [[name, children]; [foo, [a, b, c]], [bar [d, e, f]]] | where ("e" in $it.children) ``` vs ```nushell [[name, children]; [foo, [a, b, c]], [bar [d, e, f]]] | where children has "e" ``` # User-Facing Changes Added `has` and `not-has` operators, mirroring `in` and `not-in`. # Tests + Formatting - 🟢 toolkit fmt - 🟢 toolkit clippy - 🟢 toolkit test - 🟢 toolkit test stdlib # After Submitting |
||
---|---|---|
.. | ||
block.rs | ||
call.rs | ||
cell_path.rs | ||
expr.rs | ||
expression.rs | ||
import_pattern.rs | ||
keyword.rs | ||
match_pattern.rs | ||
mod.rs | ||
operator.rs | ||
pipeline.rs | ||
range.rs | ||
table.rs | ||
unit.rs | ||
value_with_unit.rs |