forked from extern/nushell
make first
behave same way as last
: always return list when with number argument (#6616)
* make `first` behave same way as `last` * better behaviour * fix tests * add tests
This commit is contained in:
@ -9,7 +9,7 @@ fn lines() {
|
||||
| lines
|
||||
| skip while $it != "[dependencies]"
|
||||
| skip 1
|
||||
| first 1
|
||||
| first
|
||||
| split column "="
|
||||
| get column1.0
|
||||
| str trim
|
||||
|
Reference in New Issue
Block a user