Riffle
Interleave a separator (or a second list) between the elements of a list.
✓ checked against that system · ! checked, with disagreements (hover a chip)Wolfram Language
Riffle✓Riffle(list, x) between every consecutive pair of elements; if is itself a , its elements are used in turn (and, once list and x run the same length, a trailing one too).Riffle(list, x, n)a separator every elements, rather than between every pair.Typed signatures
| Type | Package | Applies |
|---|---|---|
(list<any>, any, integer?) -> collection | combinatorics | always |
Examples
Basic #
Scope #
Applications #
About
| Examples | 12 |
|---|---|
| Checked against | Wolfram Language 12 agree |
| Crosswalk | Wolfram Language |