darjeeling 0.2.0

A library for functional data types in D.


To use this package, run the following command in your project's root directory:

Manual usage
Put the following dependency into your project's dependences section:

Darjeeling

A library for functional data types in D.

Build Status

Usage

import std.stdio : writeln;
import darjeeling.maybe;
import darjeeling.either;

void main()
{
    auto maybe = Maybe!int.just(42);
    if (maybe.isJust)
    {
        writeln(maybe.fromJust());  //#=> 42
    }
    
    auto either = Either!(string, int).right(33-4);
    if (either.isRight)
    {
        writeln(either.right());    //#=> 29
    }
}

Installation

TODO

Documentation

TODO

Authors:
  • Kazuhiro Matsushima
Dependencies:
none
Versions:
0.3.0 2016-May-27
0.2.0 2016-May-23
0.1.0 2016-May-20
~master 2016-May-27
Show all 4 versions
Download Stats:
  • 0 downloads today

  • 0 downloads this week

  • 0 downloads this month

  • 73 downloads total

Score:
0.5
Short URL:
darjeeling.dub.pm