This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package test | |
| import cats._, implicits._ | |
| import cats.sequence._ | |
| import shapeless._, shapeless.labelled._ | |
| import shapeless.syntax.singleton._ | |
| import shapeless.ops.hlist._ | |
| // working to understand | |
| // https://gist.github.com/SystemFw/a99a4099227042b7948cf944f06ecd01 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import shapeless._ | |
| import spire.random.Generator | |
| import spire.random.Generator.rng | |
| import shapeless.ops.hlist.RightFolder | |
| import shapeless.ops.hlist.Zip | |
| import shapeless.HList.hlistOps | |
| // From build.sbt: | |
| // | |
| // scalaVersion := "2.11.8" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import org.pingel.axle.category.awodey.CategoryTheory._ | |
| val ints = ⋅(Set(1, 2)) | |
| val strings = ⋅(Set("A", "B")) | |
| println("ints ≡ strings: " + (ints ≡ strings)) | |
| println("ints ≡ ints : " + (ints ≡ ints)) | |
| val fii = →(ints, ints) /* TODO */ | |
| val fis = →(ints, strings) /* TODO */ |