y-yu / rusty-monad

An implementation for Monad in Rust as a prototype

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

rusty-monad

An implementation for Monad in Rust as a prototype.

This repository requires Rust nightly 1.50 or the later version.

This repository includes following things:

  • Type classes emulation: Functor, Applicative, Monad
  • Examples for data types: Option, Result, Id, List (underconstruction)
  • Do notation emulation by macro

Type classes implementations are inspired by this post. Thank you for the awesome post! Other implementations are by myself.

About

An implementation for Monad in Rust as a prototype


Languages

Language:Rust 100.0%