Description Usage Arguments Value Examples
Function returns a list combined by applying a function f
pairwisely on
i-th element of a list a
and b
, for each i. If a
's (resp.
b
's) i-th element is NULL
, the function f
is not called and the
result contains the b
's (resp. a
's) non-NULL
element at the i-th
position. The resulting list has size of the larger list, hence the elements
of the shorter input lists are recycled to the size of the larger list. The
elements are combined by index. Names of the elements are ignored.
1 | combine(a, b, f = `+`)
|
a |
the first list to be combined |
b |
the second list to be combined |
f |
the function to be called pairwisely on the elements of |
an unnamed list of elements
1 2 3 4 5 6 7 8 9 10 11 12 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.