mirror of
https://github.com/nushell/nushell.git
synced 2025-06-30 22:50:14 +02:00
Minor Math Sum Additions (#2007)
* Move sum tests into math directory * Move sum documentation over to math documentation One sum example already existed in the math examples and a few of the others were outdated and didn't work, so I only moved one over, and updated their output * Remove no-longer-in-use mod statement
This commit is contained in:
@ -117,6 +117,13 @@ To get the average of the file sizes in a directory, simply pipe the size column
|
||||
────────────┴────────
|
||||
```
|
||||
|
||||
To get the sum of the characters that make up your present working directory.
|
||||
|
||||
```shell
|
||||
> pwd | split row / | size | get chars | math sum
|
||||
50
|
||||
```
|
||||
|
||||
## Errors
|
||||
|
||||
`math` functions are aggregation functions so empty lists are invalid
|
||||
|
Reference in New Issue
Block a user