omdl
v0.9.5
OpenSCAD Mechanical Design Library
|
List data type operations. More...
Go to the source code of this file.
Functions | |
function | strl (v) |
Convert a list of values to a concatenated string. More... | |
function | strl_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 list of constant or incrementing elements. More... | |
function | index_gen (l, s=true, rs) |
Create a element selection index list for a given list of values. More... | |
function | pad_e (v, w, p=0, rj=true) |
Pad a value to a constant number of elements. More... | |
function | round_d (v, d=6) |
Round a list of numbers to a fixed number of decimal point digits. More... | |
function | round_s (v, d=6) |
Round a list of numbers to a fixed number of significant figures. More... | |
function | limit (v, l, u) |
Limit a list of numbers 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 | select_ci (v, i, l=true) |
Select specified element from list or return a default. More... | |
function | select_cm (v, mv, l=true) |
Select a specified mapped value from list of key-value pairs or return a default. More... | |
function | select_e (v, i, f, l) |
Select each element at an index position of a list of iterable values. More... | |
function | select_en (v, i, f, l, n=1) |
Select n elements from each iterable value of a list. More... | |
function | merge_s (v, r=false) |
Serially merge the elements of a list. More... | |
function | merge_p (v, j=true) |
Parallel-merge the iterable elements of a list. More... | |
function | sort_q (v, i, r=false) |
Sort the elements of an iterable value using quick sort. More... | |
function | sort_q2 (v, i, d=0, r=false, s=true) |
Sort the elements of an iterable value using quick sort and compare. 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 list_operate.scad.