Initial revision
[LeanCalc.git] / help / ishash
1 NAME
2     ishash - whether a value is a hash state
3
4 SYNOPSIS
5     ishash(x)
6
7 TYPES
8     x           any
9
10     return      integer
11
12 DESCRIPTION
13     The value returned by ishash(x) is:
14
15         0 if x is not a hash state,
16         1 if x is a sha hash state,
17         2 if x is a sha1 hash state,
18         3 if x is a md5 hash state.
19
20 EXAMPLE
21     > a = shs(0), b = shs1(0), c = md5(0)
22     > print ishash(0), ishash(a), ishash(b), ishash(c);
23     0 1 2 3
24
25 LIMITS
26     none
27
28 LINK LIBRARY
29     none
30
31 SEE ALSO
32     sha, sha1, md5,
33     isassoc, isatty, isblk, isconfig, isdefined, iserror, iseven, isfile,
34     isident, isint, islist, ismat, ismult, isnull, isnum, isobj,
35     isobjtype, isodd, isprime, isrand, israndom, isreal, isrel,
36     issimple, issq, isstr, istype
37