All commands, alphabetic order; letter H

This page contains the description of the following commands handle_data_line, hash, hashsize, haulong,

(hash str) (Lisp function)

The hash function takes one argument, that should be a string or a symbol. It returns the hash code of the name. This is a small integer (at most the size of the hash table, currently 1000). In the case where the argument is not an objetc with a name, the hash function returns zero. Example

[Endymion] (list (hash 'foo) (hash 'bar) (hash "foo") (hash "bar"))
(379 262 379 262)
[Endymion] (hash 1234)
0
[Endymion] (hash '|é#|)
999

(hashsize i) (Lisp function)

The hashsize function takes one argument, it returns a list formed of integers that indicate, for the location k, the number of symbols in the bucket k, i.e. with hash code k. The first element in the list corresponds to the largest k, the last element corresponds to k=0. In the case where the argument is an integer, all symbols with hash code i areprinted. See oblist for an example.

(haulong x) (Lisp function)

This returns n such that x is between 2 power n-1 and 2 power n. If x is an integer, this is the number of bits in x.

[Endymion] (haulong 1023)
10
[Endymion] (haulong 1024)
11
[Endymion] (haulong 1024/3)
9
[Endymion] (haulong 3/1024)
-8
[Endymion] (haulong 'x)
haulong : not a rational : x

Valid XHTML 1.0 Strict back to home page © INRIA 2005, 2006 Last modified $Date: 2009/01/08 17:43:30 $