|
Scala example source code file (LeibnizTest.scala)
The LeibnizTest.scala Scala example source code
package scalaz
object LeibnizTest extends SpecLite {
import Leibniz.refl, std.function._
// That these compile.
val x = List(1) map refl[Int].onF(a => a)
val y = refl[Int].onCov(\/.right[Int,Int](42))
val z = refl[Int].onContra((i:Int) => i)
(x, y, z): (List[Int], Int \/ Int, Int => Int)
}
Other Scala examples (source code examples)Here is a short list of links related to this Scala LeibnizTest.scala source code file: |
| ... this post is sponsored by my books ... | |
#1 New Release! |
FP Best Seller |
Copyright 1998-2024 Alvin Alexander, alvinalexander.com
All Rights Reserved.
A percentage of advertising revenue from
pages under the /java/jwarehouse
URI on this website is
paid back to open source projects.