Esempio n. 1
0
        public void FlatMapToDifferentType()
        {
            var one = EFailable <int> .Success(1);

            EFailable <string> onePlusOne = one.FlatMap(i => EFailable <string> .Success($"{i}+1=2"));

            Assert.That(onePlusOne.OrThrow(), Is.EqualTo("1+1=2"));
        }