Example #1
0
        public void Test01A()
        {
            var F      = Lst.Functor <int, decimal>();
            var f      = func <int, decimal>(x => x * 15.0m);
            var source = Synthetic.Create(150);
            var data   = source.Next <int>(500);
            var result = F.fmap(f)(data);
            var expect = map(x => x * 15.0m, data);

            claim.equal(expect, result);
        }