Skip to content

Latest commit

 

History

History
26 lines (20 loc) · 534 Bytes

splice_at.md

File metadata and controls

26 lines (20 loc) · 534 Bytes
layout api-command
language Python
permalink api/python/splice_at/
command splice_at
related_commands
insert_at delete_at change_at
insert_at/
delete_at/
change_at/

Command syntax

{% apibody %} array.splice_at(offset, array) → array {% endapibody %}

Description

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)