Ruby-BST/main.rb
# collect_inorder function: performs an in-order traversal of the tree, passing each item found to block. The values returned by block are collected into a new BST, which is returned by collect_inorder.
collect_inorder function: performs an in-order traversal of the tree, passing each item found to block. The values returned by block are collected into a new BST, which is returned by collect_inorder.
collect_inorder function : performs an in - order traversal of the tree passing each item found to block . The values returned by block are collected into a new BST which is returned by collect_inorder .
def collect_inorder(&block)
    newBST = BST.new
    newBST.dub_compare_setter(@compare_proc)
    collect_inorder_helper(@root, newBST, &block)
    newBST
  end
def collect_inorder ( & block ) newBST = BST . new newBST . dub_compare_setter ( @compare_proc ) collect_inorder_helper ( @root , newBST , & block ) newBST end
collect_inorder function: performs an in-order traversal of the tree, passing each item found to block.
collect_inorder function : performs an in - order traversal of the tree passing each item found to block .
block
<not_specific>