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

Effect.mapAccum could preserve non-empty arrays #3637

Closed
steida opened this issue Sep 19, 2024 · 1 comment
Closed

Effect.mapAccum could preserve non-empty arrays #3637

steida opened this issue Sep 19, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@steida
Copy link

steida commented Sep 19, 2024

What is the problem this feature would solve?

I wouldn't have to cast like that:

// Effect.mapAccum should preserve non-empty arrays.
messages as unknown as Arr.NonEmptyReadonlyArray<Message>,

What is the feature you are proposing to solve the problem?

I see other Effect functions can preserve non-emptiness.

What alternatives have you considered?

No response

@steida
Copy link
Author

steida commented Oct 7, 2024

Thank you!

@steida steida closed this as completed Oct 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant