AVLTree<A>.fromIList constructor

AVLTree<A>.fromIList(
  1. Order<A> order,
  2. IList<A> l
)

Implementation

factory AVLTree.fromIList(Order<A> order, IList<A> l) => l.foldLeft(new AVLTree(order, emptyAVLNode()), (tree, A a) => tree.insert(a));