Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

lib: add list/Sequence.scan to create list of folds or prefix lists #2197

Merged
merged 1 commit into from
Nov 2, 2023

Conversation

fridis
Copy link
Member

@fridis fridis commented Nov 2, 2023

The name is inspired by Haskell, I am not fully happy with it but did not find a better name yet. An example:

  [1,2,3,4,5].scan i32.type.sum

results in

  [1,3,6,10,15]

Also fixes a typo in the comment of fold.

The name is inspired by Haskell, I am not fully happy with it but did not find a
better name yet.  An example:

  [1,2,3,4,5].scan i32.type.sum

results in

  [1,3,6,10,15]

Also fixes a typo in the comment of `fold`.
@fridis fridis added enhancement New feature or request base library related to the Fuzion base library labels Nov 2, 2023
@michaellilltokiwa michaellilltokiwa merged commit 25be341 into main Nov 2, 2023
6 checks passed
@michaellilltokiwa michaellilltokiwa deleted the lib_add_list_scan branch November 2, 2023 21:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
base library related to the Fuzion base library enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants