public TValue Run(TEnvironment environment) { TValue result = _self.Run(environment); _action(result); return(result); }
public TValue Run(TEnvironment environment) { if (_selector()) { return(_thenSource.Run(environment)); } else { return(_elseSource.Run(environment)); } }
public TValue Run(TEnvironment environment) { TValue result = _self.Run(environment); if (_selector(result)) { return(result); } else { return(_elseSource.Run(environment)); } }
public static void Execute <TEnvironment, TValue>(this IReaderMonad <TEnvironment, TValue> self, TEnvironment environment) { self.Run(environment); }
public static void Execute <TEnvironment, TValue>(this IReaderMonad <TEnvironment, TValue> self, TEnvironment environment, Action <TValue> onValue) { TValue result = self.Run(environment); onValue(result); }
TValue RunSelf() { return(_self.Run(_environment)); }
public TResult Run(TEnvironment environment) { return(_selector(_self.Run(environment)).Run(environment)); }