make-llrb-treeSearch Treesmap-llrb-treeGoTo Top

map-llrb-tree   function llrb-tree[Function]

Purpose
Apply a function once to the key and value of each entry in an LLRB tree.

Package   :gbbopen-tools

Module   :gbbopen-tools

Arguments and values

function     A function designator specifying a function object of two arguments
llrb-tree     An LLRB tree

See also
    llrb-tree-count
    llrb-tree-delete
    llrb-tree-p
    llrb-tree-test
    llrb-tree-value
    make-llrb-tree

Example

  > (map-llrb-tree 
      #'(lambda (key value)
          (printv key value))
    *tree*)
  ;;  key => 1
  ;;  value => a
  ;;  key => 2
  ;;  value => b
  ;;  key => 3
  ;;  value => c
  nil
  >


The GBBopen Project


make-llrb-treeSearch Treesmap-llrb-treeGoTo Top