87 ) = is_undef(v) ? undef
 
   90   : (len(v) == 1) ? str(
first(v))
 
  163       bb = (d == 
true) ? 
"{" : 
"<",
 
  164       ba = (d == 
true) ? 
"}" : 
">",
 
  167       cv = is_list(v) ? 
firstn(v) : v,
 
  168       cb = is_list(b) ?  
first(b) : b,
 
  169       cp = is_list(p) ?  
first(p) : p,
 
  170       ca = is_list(a) ?  
first(a) : a,
 
  171       cf = is_list(f) ?  
first(f) : f,
 
  174       rp = is_list(cp) ? 
reverse(cp) : cp,
 
  182       fb = is_undef(cf) ? 
empty_str : str(bb, 
"font", f0, f1, f2, ba),
 
  183       fa = is_undef(cf) ? 
empty_str : str(bb, 
"/font", ba),
 
  189         [
for (i=is_string(cb)?[cb]:cb) str(bb, i, ba)],
 
  190         [
for (i=is_string(cp)?[cp]:cp) str(bb, i, ba)],
 
  192         [
for (i=is_string(rp)?[rp]:rp) str(bb, 
"/", i, ba)],
 
  193         [
for (i=is_string(ca)?[ca]:ca) str(bb, i, ba)]
 
  227   : !is_undef(v) ? [
for (i=[0:1:l-1]) v]
 
  228   : (u == 
false) ? [
for (i=[0:1:l-1]) i]
 
  229   : [
for (i=[0:1:l-1]) undef];
 
  252   : (s == 
true) ? 
consts(len(l))
 
  254   : (s == 
"all") ? 
consts(len(l))
 
  256   : (s == 
"even") ? [
for (i = [0:2:len(l)-1]) i]
 
  257   : (s == 
"odd") ? [
for (i = [1:2:len(l)-1]) i]
 
  262       i = rands(0, 2, len(l), r)
 
  264     [
for (j = [0:len(i)-1]) 
if (i[j] > 1) j]
 
  305 ) = is_undef(v) ? undef
 
  315       cf = floor((w-lv)/lp),
 
  316       cp = w - lv - lp * cf,
 
  318       vl = (lv > 0) ? [
for (i=[1:lv]) iv[ (i-1) ]]
 
  320       fp = (cf > 0) ? [
for (i=[1:cf], j=[1:lp]) ip[ (j-1) ]]
 
  322       pp = (cp > 0) ? [
for (i=[1:cp]) ip[(rj == 
false) ? (i-1) : (lp-cp+i-1) ]]
 
  325     (rj == 
false) ? concat(vl, fp, pp) : concat(pp, fp, vl);
 
  344   : is_list(v) ? [
for (i=v) 
round_d(i, d)]
 
  368     let(n = floor(log(abs(v))) + 1 - d)
 
  369       round(v * pow(10, -n)) * pow(10, n)
 
  370   : is_list(v) ? [for (i=v) 
round_s(i, d)]
 
  391   : is_list(v) ? [for (i=v) 
limit(i,l,u)]
 
  415   : !is_list(v) ? undef
 
  426   : v[e] + 
sum(v, s, e-1);
 
  447   : !is_list(v) ? undef
 
  614   : ( (r == true) && is_list(
first(v)) ) ?
 
  661       h = [for (i = v) 
first(i)],
 
  662       t = [for (i = v) 
tailn(i)]
 
  664     (j == true) ? concat([h], 
merge_p(t, j))
 
  698       mp = v[floor(len(v)/2)],            
 
  699       me = is_undef(i) ? mp : mp[i],      
 
  702       lt = [for (j = v) let(k = is_undef(i) ? j : j[i]) if (k  < me) j],
 
  703       eq = [for (j = v) let(k = is_undef(i) ? j : j[i]) if (k == me) j],
 
  704       gt = [for (j = v) let(k = is_undef(i) ? j : j[i]) if (k  > me) j],
 
  708              for (j = v) let(k = is_undef(i) ? j : j[i])
 
  709                if ( !( (k < me) || (k == me) || (k > me) ) ) j
 
  712       sp = (r == true) ? concat(
sort_q(gt, i, r), eq, 
sort_q(lt, i, r), uo)
 
  751       mp = v[floor(len(v)/2)],
 
  752       me = is_undef(i) ? mp : mp[i],
 
  757         let(k = is_undef(i) ? j : j[i])
 
  759             ((d > 0) && is_list(k)) ? 
sort_q2(k, i, d-1, r, s) : j
 
  764         let(k = is_undef(i) ? j : j[i])
 
  766             ((d > 0) && is_list(k)) ? 
sort_q2(k, i, d-1, r, s) : j
 
  771         let(k = is_undef(i) ? j : j[i])
 
  773             ((d > 0) && is_list(k)) ? 
sort_q2(k, i, d-1, r, s) : j
 
  776            concat(
sort_q2(gt, i, d, r, s), eq, 
sort_q2(lt, i, d, r, s))
 
  777          : concat(
sort_q2(lt, i, d, r, s), eq, 
sort_q2(gt, i, d, r, s))
 
  779     (d > 0) ? 
sort_q2(sp, i, d-1, r, s) : sp;
 
empty_str
<string> A string with no characters (the empty string).
 
empty_lst
<list> A list with no values (the empty list).
 
function firstn(v, n=1)
Return a list containing the first n elements of an iterable value.
 
function select_r(v, i)
Select a range of elements from an iterable value.
 
function find(mv, v, c=1, i, i1=0, i2)
Find the occurrences of a match value in an iterable value.
 
function defined_e_or(v, i, d)
Return an element of an iterable when it exists or a default value otherwise.
 
function last(v)
Return the last element of an iterable value.
 
function exists_e(i, v)
Test if an element exists at a specified index of an iterable value.
 
function second(v)
Return the second element of an iterable value.
 
function lastn(v, n=1)
Return a list containing the last n elements of an iterable value.
 
function first(v)
Return the first element of an iterable value.
 
function tailn(v, n=1)
Return a list containing all but the first n elements of an iterable value.
 
function reverse(v)
Reverse the elements of an iterable value.
 
function all_numbers(v, c=0)
Test if all elements of an iterable value are numbers.
 
function all_defined(v)
Test if no element of an iterable value has an undefined value.
 
function any_undefined(v)
Test if at least one element of an iterable value has an undefined value.
 
function is_iterable(v)
Test if a value has multiple parts and is iterable.
 
function all_iterables(v)
Test if all elements of an iterable value are iterable.
 
function is_empty(v)
Test if an iterable value is empty.
 
function any_equal(v, cv)
Test if any element of an iterable value equal a comparison value.
 
function compare(v1, v2, s=true)
Compare the sort order of any two values.
 
function index_gen(l, s=true, rs)
Create a element selection index list for a given list of values.
 
function round_d(v, d=6)
Round a list of numbers to a fixed number of decimal point digits.
 
function mean(v)
Compute the mean/average of a list of numbers.
 
function select_en(v, i, f, l, n=1)
Select n elements from each iterable value of a list.
 
function select_cm(v, mv, l=true)
Select a specified mapped value from list of key-value pairs or return a default.
 
function pad_e(v, w, p=0, rj=true)
Pad a value to a constant number of elements.
 
function select_ci(v, i, l=true)
Select specified element from list or return a default.
 
function sort_q2(v, i, d=0, r=false, s=true)
Sort the elements of an iterable value using quick sort and compare.
 
function sort_q(v, i, r=false)
Sort the elements of an iterable value using quick sort.
 
function limit(v, l, u)
Limit a list of numbers between an upper and lower bounds.
 
function consts(l, v, u=false)
Create a list of constant or incrementing elements.
 
function strl(v)
Convert a list of values to a concatenated string.
 
function round_s(v, d=6)
Round a list of numbers to a fixed number of significant figures.
 
function strl_html(v, b, p, a, f, d=false)
Convert a list of values to a concatenated HTML-formatted string.
 
function merge_s(v, r=false)
Serially merge the elements of a list.
 
function merge_p(v, j=true)
Parallel-merge the iterable elements of a list.
 
function sum(v, i1, i2)
Compute the sum of a list of numbers.
 
function select_e(v, i, f, l)
Select each element at an index position of a list of iterable values.
 
function defined_or(v, d)
Return given value, if defined, or a secondary value, if primary is not defined.
 
function is_between(v, l, u)
Test if a numerical value is between an upper and lower bounds.
 
function is_defined(v)
Test if a value is defined.
 
function is_number(v)
Test if a value is a number.
 
function is_range(v)
Test if a value is a range definition.