API Reference
Complete API documentation for NOPE-PRO types, methods, and extensions.
API Reference
Complete reference documentation for all NOPE-PRO types, methods, and extension functions. Find detailed information about parameters, return values, and usage examples for every API.
๐ Core Types
NOPE-PRO provides two fundamental types that form the foundation of Railway-Oriented Programming:
Result<T, E>
The primary type for handling operations that can succeed or fail.
- Constructor methods -
Success()
,Failure()
,Of()
,SuccessIf()
- Transformation methods -
Map()
,Bind()
,MapError()
,Ensure()
- Side-effect methods -
Tap()
- Termination methods -
Finally()
,Match()
,Or()
,OrElse()
- Async extensions - UniTask and Awaitable integration
- Debugging methods -
EnableDebug()
, flow tracking
Maybe<T>
Safe optional value handling without null reference exceptions.
- Constructor methods -
From()
,None
, implicit conversions - Transformation methods -
Map()
,Where()
,Select()
- Side-effect methods -
Execute()
,ExecuteNoValue()
,Tap()
- Termination methods -
Match()
,Or()
,OrElse()
- Conversion methods -
ToResult()
- LINQ integration
๐ Quick API Lookup
Error Handling
Method | Purpose | When to Use |
---|---|---|
MapError() | Transform error | Add context to errors |
Ensure() | Add validation | Validate success values |
OrElse() | Fallback operation | Try alternative sources |
Finally() | Cleanup/logging | Always execute code |
TapError() | Side effects on error | Log failures |
Async Operations
Method | Framework | Purpose |
---|---|---|
Bind(async func) | UniTask/Awaitable | Chain async operations |
Map(async func) | UniTask/Awaitable | Transform with async |
Tap(async action) | UniTask/Awaitable | Async side effects |
Conversion Extensions
- Custom extensions: Build your own Result/Maybe methods
๐ Related Documentation
- Core Concepts - Understanding the philosophy
- Tutorials - Practical examples and patterns
- Visual Debugger - Debugging API usage
๐ก Code Examples
Basic Result Usage
Maybe Operations
Error Handling Patterns
๐ Method Categories
Each API page includes methods organized by category:
- ๐๏ธ Construction - Creating instances
- ๐ Transformation - Mapping and binding
- โ Validation - Ensuring constraints
- ๐ Combination - Working with multiple values
- ๐๏ธ Inspection - Examining values
- ๐ฏ Termination - Final operations
- ๐ง Utilities - Helper methods
Need detailed information? Choose the type you're working with:
Result<T, E>
API - Complete Result documentationMaybe<T>
API - Complete Maybe documentation