forked from extern/nushell
f46c45343a
# Description While trying to add a new `uniq-by` command I refactored the `uniq` command code to understand it and try to reuse. I think this is more compact and easier to understand. The part that I think it's a little confusing in this refactor is the conditions inside `.filters()`, for example: `!flag_show_repeated || (value.1 > 1)`. I could use `if (flag_show_repeated) {value.1 > 1} else {true}` but it is more verbose, what do you think? PS: Not sure if you like this kind of PR, sorry if not. # Tests + Formatting I also added a test where the `uniq` has a table as input. |
||
---|---|---|
.. | ||
commands | ||
format_conversions | ||
main.rs |