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