
scalaz.syntax.TreeOps.scala Maven / Gradle / Ivy
The newest version!
package scalaz
package syntax
final class TreeOps[A](self: A) {
def node(subForest: Tree[A]*): Tree[A] = Tree.node(self, subForest.toStream)
def leaf: Tree[A] = Tree.leaf(self)
}
trait ToTreeOps {
implicit def ToTreeOps[A](a: A) = new TreeOps(a)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy