Skip to content

Instantly share code, notes, and snippets.

View joshi1983's full-sized avatar

Josh Greig joshi1983

  • Windsor, Ontario
View GitHub Profile
@joshi1983
joshi1983 / maybe.cs
Last active October 26, 2017 14:33 — forked from dcomartin/maybe.cs
Fixed misspelled return keyword in Decrement method
public Maybe<int> Decrement(int number)
{
if (number <= 0)
{
return Maybe<int>.None;
}
return Maybe<int>(number-1);
}