Timeline for Adding data to an existing list
Current License: CC BY-SA 3.0
4 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Jul 11, 2016 at 20:42 | comment | added | march |
Also, be wary of what happens when your list of ordered pairs is only two elements long. To get around that issue, use Replace with a level-spec: Replace[{{a, b}, {c, d}}, {x_, y_} :> Sequence[{x, 0}, {x, y}], 2]
|
|
Jul 11, 2016 at 19:47 | comment | added | mikado | Just need to be careful that the top-level list must never have only two elements, otherwise the pattern will match that. | |
Jul 11, 2016 at 19:04 | vote | accept | GambitSquared | ||
Jul 11, 2016 at 18:48 | history | answered | Jason B. | CC BY-SA 3.0 |