std-number-list-p


Synopsis

(std-number-list-p <expr>)

Description

Predicate if the expression is a list and all elements are numbers.

Useful to detect points but a number-list is not necesserily a point. This predicate is used in STD-EQUALP to apply a numerical tolerance with the comparison.

Examples

(std-number-list-p '(0.0 1.0 0)) => T

(std-number-list-p '(0))               => T
(std-number-list-p (std-int-list 100)) => T

same as:

(std-every 'numberp expr)

Arguments

expr: any valid lisp expression

Return Value

T or nil.

Side Effects

None.

Module

(std-require 'STDLIST)

Defined in STDLIST