© 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
Search
Star
Feedback
Setup for Free
Purpose of the public fields `i0`, `i1` and `i2` in the `Some` and `None` classes of `Option.ts`. - Effect Community
EC
Effect Community
•
3y ago
•
23 replies
Scott Moore
Purpose of the public fields `i0`, `i1` and `i2` in the `Some` and `None` classes of `Option.ts`.
Weird question
, I
'm just curious and have been reading some the source code out of interest
. Why do the
Some
Some
and
None
None
class in
data/src/internal/Option.ts
data/src/internal/Option.ts
both have the public fields
i0
i0
,
i1
i1
and
i2
i2
? It looks like
i0
i0
is used to store the value in
Some
Some
, but what are the others for
?
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
The Use of `globalValue` and Purpose of `moduleVersion` in Hot Reloading
EC
Effect Community / 🚀-effect
3y ago
Understanding the Purpose of BrowserWorker in Evolu
EC
Effect Community / 🚀-effect
3y ago
Exploring the Purpose and Usage of the `Runtime` Type
EC
Effect Community / 🚀-effect
3y ago
Option.some and Option.none return Option<T> instead of Some<T> and None<T> because Option is a u...
EC
Effect Community / 🚀-effect
15mo ago