Skip to content

Add simple example uses in closures.md (nushell/issues/15845)#1928

Merged
fdncred merged 1 commit into
nushell:mainfrom
raoulkent:main
Jun 3, 2025
Merged

Add simple example uses in closures.md (nushell/issues/15845)#1928
fdncred merged 1 commit into
nushell:mainfrom
raoulkent:main

Conversation

@raoulkent
Copy link
Copy Markdown
Contributor

@raoulkent raoulkent commented Jun 3, 2025

See; #1929

@raoulkent raoulkent changed the title Add simple example uses in closures.md (https://github.com/nushell/nushell/issues/15845) Add simple example uses in closures.md (nushell/issues/15845) Jun 3, 2025
@fdncred fdncred merged commit 5b122da into nushell:main Jun 3, 2025
2 checks passed
@fdncred
Copy link
Copy Markdown
Contributor

fdncred commented Jun 3, 2025

Thanks

@raoulkent raoulkent mentioned this pull request Jun 3, 2025
Kissaki added a commit to Kissaki/nushell.github.io that referenced this pull request Jul 12, 2025
As per [`reduce` command documentation examples][reduce], the reduce closure has parameters `|it, acc|`.

This accidental swap was part of the introduction of the example in nushell#1928.

[reduce]: https://www.nushell.sh/commands/docs/reduce.html
fdncred pushed a commit that referenced this pull request Jul 12, 2025
As per [`reduce` command documentation examples][reduce], the reduce closure has parameters `|it, acc|`.

This accidental swap was part of the introduction of the example in #1928.

[reduce]: https://www.nushell.sh/commands/docs/reduce.html
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants