Skip to main content
Stack Overflow Jobs powered by Indeed: A job site that puts thousands of tech jobs at your fingertips (U.S. only). Search jobs
Mark Cidade's user avatar
Mark Cidade's user avatar
Mark Cidade's user avatar
Mark Cidade
  • Member for 13 years, 4 months
  • Last seen more than 7 years ago

I first learned BASIC at age 11 on a Commodore 64.

Former SDET, ADO.NET Team @ Microsoft.

 class Maybe<T> 
  { T t;

    public static Maybe<T> Just(T t){ return new Maybe<T>{t=t};}

    static Maybe<T> nothing = new Maybe<T>();
    public static Maybe<T> Nothing 
     { get {return nothing;}

    public Maybe<U> Select<U>(Func<T,U> f) 
     { return Maybe<U>.Just(f(t));

    public Maybe<V> SelectMany<U,V>(Func<T, Maybe<U>> f, Func<U,V> g)
     { var x = f(t);
       if (x == Maybe<U>.Nothing) return Maybe<V>.Nothing;
       return Maybe<V>.Just(g(x.t));

This user doesn’t have any gold badges yet.
This user doesn’t have any silver badges yet.
bronze badges

This user hasn’t posted yet.