| layout | api-command | ||||||
|---|---|---|---|---|---|---|---|
| language | Python | ||||||
| permalink | api/python/splice_at/ | ||||||
| command | splice_at | ||||||
| related_commands |
|
{% apibody %} array.splice_at(offset, array) → array {% endapibody %}
Insert several values in to an array at a given index. Returns the modified array.
Example: Hulk and Thor decide to join the avengers.
r.expr(["Iron Man", "Spider-Man"]).splice_at(1, ["Hulk", "Thor"]).run(conn)