© 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
Search
Star
Feedback
Setup for Free
Issue with `Chunk.map` not returning `NonEmptyChunk` - Effect Community
EC
Effect Community
•
3y ago
•
29 replies
Federico Biccheddu
Issue with `Chunk.map` not returning `NonEmptyChunk`
Seems
Chunk.map
Chunk.map
doesn
't not return
NonEmptyChunk
NonEmptyChunk
when mapping over it
. There is a
Chunk.flatMapNonEmpty
Chunk.flatMapNonEmpty
, but this is not what I need
.
For now I solved explicitly setting the type as
NonEmptyChunk
NonEmptyChunk
. Is this the only solution
?
Effect Community
Join
Production-grade applications in TypeScript.
6,221
Members
View on Discord
Resources
ModelContextProtocol
ModelContextProtocol
MCP Server
Recent Announcements
Similar Threads
Was this page helpful?
Yes
No
Similar Threads
Transform Chunk.Chunk<Chunk.Chunk<T>> to Tuple
EC
Effect Community / data
2y ago
The Reason Behind ReadonlyArray/map Returning a Mutable Array
EC
Effect Community / data
3y ago
Issue with returning `Either` from `trpc` router and broken types on React side
EC
Effect Community / data
3y ago
Bug with `ReadonlyArray.fromIterable` returning an Array of `undefined`
EC
Effect Community / data
3y ago