public static Config.Parser <From, B> flatMap <From, A, B>( this Config.Parser <From, A> aParser, Func <ConfigPath, A, Option <B> > f ) => aParser.flatMap((path, a) => { var bOpt = f(path, a); return(bOpt.isSome ? Either <ConfigLookupError, B> .Right(bOpt.__unsafeGet) : Config.parseErrorEFor <B>(path, a)); });
public static Config.Parser <B> flatMap <A, B>( this Config.Parser <A> aParser, Fn <ConfigPath, A, Option <B> > f ) => aParser.flatMap((path, a) => { var bOpt = f(path, a); return(bOpt.isDefined ? Either <ConfigLookupError, B> .Right(bOpt.get) : Config.parseErrorEFor <B>(path, a)); });
public static Config.Parser <From, B> flatMap <From, A, B>( this Config.Parser <From, A> aParser, Func <A, Option <B> > f ) => aParser.flatMap((path, a) => f(a));
public static Config.Parser <B> flatMap <A, B>( this Config.Parser <A> aParser, Fn <A, Option <B> > f ) => aParser.flatMap((path, a) => f(a));