Class TreeFunctions$


  • public class TreeFunctions$
    extends java.lang.Object
    • Field Detail

      • MODULE$

        public static final TreeFunctions$ MODULE$
        Static reference to the singleton instance of this Scala object.
    • Constructor Detail

      • TreeFunctions$

        public TreeFunctions$()
    • Method Detail

      • fold

        public <A,​B> B fold​(scala.Function0<B> default_,
                                  scala.Function1<Tree.Node<A>,​B> f,
                                  Tree<A> t)
      • prune

        public <A> scala.collection.immutable.List<Tree.Node<A>> prune​(scala.collection.immutable.List<Tree<A>> nodes)
      • mapNode

        public <A,​B> scala.Function1<Tree.Node<A>,​Tree.Node<B>> mapNode​(scala.Function1<A,​B> f)
      • map

        public <A,​B> scala.Function1<Tree<A>,​Tree<B>> map​(scala.Function1<A,​B> f)
      • filter

        public <A> scala.Function1<Tree<A>,​Tree<A>> filter​(scala.Function1<A,​java.lang.Object> f)
      • filterChildren

        public <A> scala.Function1<Tree.Node<A>,​Tree.Node<A>> filterChildren​(scala.Function1<A,​java.lang.Object> f)
      • flattenNode

        public <A> scala.Function1<Tree.Node<Tree<A>>,​Tree<A>> flattenNode()
      • flatten

        public <A> scala.Function1<Tree<Tree<A>>,​Tree<A>> flatten()
      • flatMap

        public <A,​B> scala.Function1<Tree<A>,​Tree<B>> flatMap​(scala.Function1<A,​Tree<B>> f)
      • foldLeft

        public <A,​B> scala.Function1<Tree<A>,​B> foldLeft​(B z,
                                                                     scala.Function2<B,​A,​B> f)
      • foldRight

        public <B,​A> scala.Function1<Tree<A>,​B> foldRight​(B z,
                                                                      scala.Function2<A,​B,​B> f)
      • toOption

        public <A> scala.Function1<Tree<A>,​scala.Option<Tree.Node<A>>> toOption()
      • toList

        public <A> scala.Function1<Tree<A>,​scala.collection.immutable.List<A>> toList()
      • bottomUpList

        public <A> scala.Function1<Tree<A>,​scala.collection.immutable.List<A>> bottomUpList()
      • foreach

        public <A,​U> scala.Function1<Tree<A>,​scala.runtime.BoxedUnit> foreach​(scala.Function1<A,​U> f)
      • unsafeMapNode

        public <A,​B> scala.Function1<Tree.Node<A>,​Tree.Node<B>> unsafeMapNode​(scala.Function2<A,​scala.collection.immutable.List<Tree.Node<B>>,​B> unsafeF)
      • unsafeMapNode

        public <A,​B> scala.Function1<Tree.Node<A>,​Tree.Node<B>> unsafeMapNode​(scala.Function1<Tree.Node<A>,​B> unsafeF)
      • unsafeMap

        public <A,​B> scala.Function1<Tree<A>,​Tree<B>> unsafeMap​(scala.Function1<Tree.Node<A>,​B> unsafeF)
      • unsafeFlatMapNode

        public <A,​B> scala.Function1<Tree.Node<A>,​Tree<B>> unsafeFlatMapNode​(scala.Function1<Tree.Node<A>,​Tree<B>> unsafeF)
      • unsafeFlatMap

        public <A,​B> scala.Function1<Tree<A>,​Tree<B>> unsafeFlatMap​(scala.Function1<Tree.Node<A>,​Tree<B>> unsafeF)