failed attempts to intercept copy command when the cursor is in the empty text field...
[LeanCalc.git] / help / issimple
1 NAME
2     issimple - whether a value is a simple type
3
4 SYNOPSIS
5     issimple(x)
6
7 TYPES
8     x           any, &any
9
10     return      int
11
12 DESCRIPTION
13     Determine if x is a simple type.  This function will return 1 if x
14     is a simple type, 0 otherwise.  Simple types are real numbers,
15     complex numbers, strings and null values.
16
17 EXAMPLE
18     > print issimple(2.0), issimple(1), issimple("0")
19     1 1 1
20
21     > print issimple(2i), issimple(1e20), issimple(1/3), issimple(null())
22     1 1 1 1
23
24     > mat a[2]
25     > b = list(1,2,3)
26     > c = assoc()
27     > obj chongo {was, here} d;
28     > print issimple(a), issimple(b), issimple(c), issimple(d)
29     0 0 0 0
30
31 LIMITS
32     none
33
34 LINK LIBRARY
35     none
36
37 SEE ALSO
38     isassoc, isatty, isblk, isconfig, isdefined, iserror, iseven, isfile,
39     ishash, isident, isint, islist, ismat, ismult, isnull, isnum, isobj,
40     isobjtype, isodd, isprime, isrand, israndom, isreal, isrel,
41     issq, isstr, istype
42