nushell/crates/nu-command/src/math
Ian Manske e879d4ecaf
ListStream touchup (#12524)
# Description

Does some misc changes to `ListStream`:
- Moves it into its own module/file separate from `RawStream`.
- `ListStream`s now have an associated `Span`.
- This required changes to `ListStreamInfo` in `nu-plugin`. Note sure if
this is a breaking change for the plugin protocol.
- Hides the internals of `ListStream` but also adds a few more methods.
- This includes two functions to more easily alter a stream (these take
a `ListStream` and return a `ListStream` instead of having to go through
the whole `into_pipeline_data(..)` route).
  -  `map`: takes a `FnMut(Value) -> Value`
  - `modify`: takes a function to modify the inner stream.
2024-05-05 16:00:59 +00:00
..
abs.rs Add command_prelude module (#12291) 2024-03-26 21:17:30 +00:00
avg.rs Shrink the size of Expr (#12610) 2024-04-24 15:46:35 +00:00
ceil.rs Add command_prelude module (#12291) 2024-03-26 21:17:30 +00:00
floor.rs Add command_prelude module (#12291) 2024-03-26 21:17:30 +00:00
log.rs Add command_prelude module (#12291) 2024-03-26 21:17:30 +00:00
math_.rs Add command_prelude module (#12291) 2024-03-26 21:17:30 +00:00
max.rs Shrink the size of Expr (#12610) 2024-04-24 15:46:35 +00:00
median.rs Shrink the size of Expr (#12610) 2024-04-24 15:46:35 +00:00
min.rs Shrink the size of Expr (#12610) 2024-04-24 15:46:35 +00:00
mod.rs cratification: part III of the math commands to nu-cmd-extra (#9674) 2023-07-13 09:11:26 -07:00
mode.rs Shrink the size of Expr (#12610) 2024-04-24 15:46:35 +00:00
product.rs Shrink the size of Expr (#12610) 2024-04-24 15:46:35 +00:00
reducers.rs Apply nightly clippy fixes (#11083) 2023-11-17 09:15:55 -06:00
round.rs Add command_prelude module (#12291) 2024-03-26 21:17:30 +00:00
sqrt.rs Add command_prelude module (#12291) 2024-03-26 21:17:30 +00:00
stddev.rs Shrink the size of Expr (#12610) 2024-04-24 15:46:35 +00:00
sum.rs Shrink the size of Expr (#12610) 2024-04-24 15:46:35 +00:00
utils.rs ListStream touchup (#12524) 2024-05-05 16:00:59 +00:00
variance.rs Shrink the size of Expr (#12610) 2024-04-24 15:46:35 +00:00