Search
Star
1.4k
Feedback
Setup for Free
EC
Effect Community
•
11mo ago
Peter Adrian
Understanding the tuple return in Stream.mapAccum's reducing logic
Why does Stream
.mapAccum have a tuple in the return for the reducing logic
?
Stream.mapAccum(0, (s, a) => [s + a, s + a])
Stream.mapAccum(0, (s, a) => [s + a, s + a])
Effect Community
Join
Production-grade applications in TypeScript.
5,916
Members
View on Discord
Resources
ModelContextProtocol
ModelContextProtocol
MCP Server
Recent Announcements
Similar Threads
Was this page helpful?
Yes
No
© 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
Stream.
mapAccum
(
0
, (
s
,
a
)
=>
[s
+
a, s
+
a])
Stream.
mapAccum
(
0
, (
s
,
a
)
=>
[s
+
a, s
+
a])
No replies yet
Be the first to reply to this message
Join
Similar Threads
Flushing final state from `Stream.mapAccum`
EC
Effect Community / help-forum
16mo ago
Understanding the Concept of Stream Throttling in TypeScript
EC
Effect Community / effect-🚀
3y ago
Understanding `bufferSize` in `Stream.flatMap` Options
EC
Effect Community / effect-🚀
2y ago
Understanding Stream Duplication in Effect Typescript
EC
Effect Community / effect-beginners-🚀
12mo ago