/composer

Primary LanguageGoMIT LicenseMIT

composer

This is an exercise project that hacks functional ideas in to golang, as can be seen, it is not a very ergonomic or useful implmenetation.

Features

  • Option Monad: Represents a value that may or may not be present.
  • Either Monad: Represents one or another value of arbitrary types.
  • Some and None Constructors: Easily create Option instances.
  • Functional Operations: Use FlatMap and Map to chain computations.
  • Type-Safe: Leverages Go's generics for type safety.
  • No External Dependencies: Pure Go implementation.