omdl
v0.9.5
OpenSCAD Mechanical Design Library
|
Iterable data type tests. More...
Go to the source code of this file.
Functions | |
function | is_iterable (v) |
Test if a value has multiple parts and is iterable. More... | |
function | is_empty (v) |
Test if an iterable value is empty. More... | |
function | all_equal (v, cv) |
Test if all elements of an iterable value equal a comparison value. More... | |
function | any_equal (v, cv) |
Test if any element of an iterable value equal a comparison value. More... | |
function | all_oneof (v, cv) |
Test if all elements of an iterable value equal one of the comparison values. More... | |
function | all_defined (v) |
Test if no element of an iterable value has an undefined value. More... | |
function | any_defined (v) |
Test if at least one element of an iterable value has a defined value. More... | |
function | any_undefined (v) |
Test if at least one element of an iterable value has an undefined value. More... | |
function | all_scalars (v) |
Test if all elements of an iterable value are scalar values. More... | |
function | all_iterables (v) |
Test if all elements of an iterable value are iterable. More... | |
function | all_lists (v, c=0) |
Test if all elements of an iterable value are lists. More... | |
function | all_strings (v, c=0) |
Test if all elements of an iterable value are strings. More... | |
function | all_numbers (v, c=0) |
Test if all elements of an iterable value are numbers. More... | |
function | all_len (v, l, c=0) |
Test if all elements of an iterable value are iterable with a fixed length. More... | |
Iterable data type tests.
This file is part of omdl, an OpenSCAD mechanical design library.
The omdl is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version.
The omdl is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public License along with the omdl; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA; or see http://www.gnu.org/licenses/.
Definition in file iterable_test.scad.