layout | language | permalink | command | related_commands | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
api-command |
Python |
api/python/prepend/ |
prepend |
|
{% apibody %} array.prepend(value) → array {% endapibody %}
Prepend a value to an array.
Example: Retrieve Iron Man's equipment list with the addition of some new boots.
r.table('marvel').get('IronMan')['equipment'].prepend('newBoots').run(conn)