mirror of
https://github.com/lcn2/calc.git
synced 2025-08-16 01:03:29 +03:00
34 lines
659 B
Plaintext
34 lines
659 B
Plaintext
NAME
|
|
islist - whether a value is a list
|
|
|
|
SYNOPSIS
|
|
islist(x)
|
|
|
|
TYPES
|
|
x any, &any
|
|
|
|
return int
|
|
|
|
DESCRIPTION
|
|
Determine if x is a list. This function will return 1 if x is
|
|
a list, 0 otherwise.
|
|
|
|
EXAMPLE
|
|
> lst = list(2,3,4)
|
|
> print islist(lst), islist(1)
|
|
1 0
|
|
|
|
LIMITS
|
|
none
|
|
|
|
LIBRARY
|
|
none
|
|
|
|
SEE ALSO
|
|
append, delete, insert, islist, pop, push, remove, rsearch,
|
|
search, size, list,
|
|
isassoc, isatty, isblk, isconfig, isdefined, iserror, iseven, isfile,
|
|
ishash, isident, isint, ismat, ismult, isnull, isnum, isobj,
|
|
isobjtype, isodd, isprime, isrand, israndom, isreal, isrel,
|
|
issimple, issq, isstr, istype
|