6 ms·
What's monadic about this?
by tedreed 6y ago
What's monadic about this?
- deleted 6y ago[deleted]
- thelazydogsback 6y agoThe title. Seriously though, I think that "fluent" interfaces are being re-branded as "monadic" -- I assume because you're creating or piping around bound state and unwrapping/re-wrapping it with the various constructs.
- tedreed 6y agoIt doesn't even seem to be piping anything around though. The result of the filtering certainly isn't getting piped anywhere. If I wanted something like this I'd probably just reach for pampy and use pattern matching. Which still isn't "Monadic".
- gianlucaguarini 6y agoThe result of the chain is retained in the `value` property as described in the documentation. Mapping and composition are supported.
- gianlucaguarini 6y ago1. the chained methods 2. the composable API 3. the value wrapping 4. the mapping function called `run` 5. the support of any kind of generic value but you are the expert here ;) can you please tell me what am I missing?