samber/mo
View on GitHub ↗ ★ 3,432 Go
🦄 Monads and popular FP abstractions, powered by Go 1.18+ Generics (Option, Result, Either...)
8 mentions on Hacker News by 7 people: 4 stories, 4 comments · first 2022-05-23 · latest 2024-12-09
20082026
-
What do people think of this https://github.com/samber/mo ?
comment by adhamsalama · 2024-12-09 · in Good union types in Go would probably need types without a zero value -
A simple alternative is the combination of: - https://github.com/samber/lo - https://github.com/samber/mo The split is also nice as you can choose to just use the generic convenience functions from lo without the more FP related things…
comment by PhilippGille · 2023-08-18 · in FP-Go: Functional programming library for Golang -
For those who would rather use an Either type instead of returning 2 variables in Go, I made this: https://github.com/samber/mo
comment by samber · 2023-05-04 · in Error Handling Patterns -
Go generics allow all kinds of things https://github.com/samber/mo
comment by ptman · 2023-03-14 · in Switching from C++ to Rust -
▲ 2
Monads for Go, using generics (Option, Result, Either...)story by Seb-C · 2022-11-17 · 0 comments
-
▲ 3
Monads and popular FP abstractions, powered by Go 1.18 Genericsstory by ljahier · 2022-06-04 · 3 comments
-
▲ 3
Monads and popular FP abstractions, based on Go 1.18 Genericsstory by samber · 2022-05-31 · 2 comments
-
▲ 3
Monads and Popular FP Abstractions Based on Go Generics (Option, Result, Either)story by database64128 · 2022-05-23 · 0 comments