omdl
v0.6.1
OpenSCAD Mechanical Design Library
|
List data type operations. More...
Go to the source code of this file.
Functions | |
function | lstr (v) |
Convert a list of values to a concatenated string. More... | |
function | lstr_html (v, b, p, a, f, d=false) |
Convert a list of values to a concatenated HTML-formatted string. More... | |
function | consts (l, v, u=false) |
Create a sequence of constant or incrementing elements. More... | |
function | get_index (l, s=true, rs) |
Create a sequence for a list index sequence specification. More... | |
function | pad (l, w, p=0, r=true) |
Pad a list to a constant width of elements. More... | |
function | dround (v, d=6) |
Round all numerical values of a list to a fixed number of decimal point digits. More... | |
function | sround (v, d=6) |
Round all numerical values of a list to a fixed number of significant figures. More... | |
function | limit (v, l, u) |
Limit all numerical values of a list between an upper and lower bounds. More... | |
function | sum (v, i1, i2) |
Compute the sum of a list of numbers. More... | |
function | mean (v) |
Compute the mean/average of a list of numbers. More... | |
function | ciselect (v, i) |
Case-like select a value from a list of ordered value options. More... | |
function | cmvselect (v, mv) |
Case-like select a value from a list of mapped key-value options. More... | |
function | eselect (v, f=true, l=false, i) |
Select a specified element from each iterable value of a list. More... | |
function | smerge (v, r=false) |
Serial-merge lists of iterable values. More... | |
function | pmerge (v, j=true) |
Parallel-merge lists of iterable values. More... | |
function | qsort (v, i, r=false) |
Sort the numeric or string elements of a list using quick sort. More... | |
function | qsort2 (v, i, d=0, r=false, s=true) |
Hierarchically sort an arbitrary data list using quick sort. More... | |
List data type operations.
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 datatypes_operate_list.scad.