public void Test1()
        {
            var listMonoidAdapter = MonoidAdapterRegistry.Get <string>(typeof(ListMonoid <>));
            var listMonoid        = (ListMonoid <string>)listMonoidAdapter.MEmpty;

            Assert.That(listMonoid.List, Is.Empty);
        }
Exemple #2
0
 public MonoidAdapter <TA> GetMonoidAdapter()
 {
     return(MonoidAdapterRegistry.Get <TA>(typeof(ListMonoid <>)));
 }