[top][index]
search for:

scanPairs(HashTable,Function) -- apply a function to pairs in a hash table

Synopsis:

  • Function: scanPairs -- apply a function to pairs in a hash table
  • Input:
  • an instance of class HashTable.
  • an instance of class Function.
  • Output:
  • an instance of class Nothing.
  • scanPairs(x,f) -- applies the function f to each pair (k,v) where k is a key in the hash table x and v is the corresponding value x#k.

    This function requires an immutable hash table. To scan the pairs in a mutable hash table, use scan(pairs x, f).

    See also:

  • scan -- apply a function to each element

  • [top][index]
    search for: