ext/iodine/fiobj_ary.c
/**
 * Replaces the object at a specific position, returning the old object -
 * remember to `fiobj_free` the old object.
 */
Replaces the object at a specific position, returning the old object
remember to `fiobj_free` the old object.
Replaces the object at a specific position returning the old object remember to ` fiobj_free ` the old object .
FIOBJ fiobj_ary_replace(FIOBJ ary, FIOBJ obj, int64_t pos) {
  assert(ary && FIOBJ_TYPE_IS(ary, FIOBJ_T_ARRAY));
  FIOBJ old = fiobj_ary_index(ary, pos);
  fiobj_ary_set(ary, obj, pos);
  return old;
}
FIOBJ fiobj_ary_replace ( FIOBJ ary , FIOBJ obj , int64_t pos ) { assert ( ary && FIOBJ_TYPE_IS ( ary , FIOBJ_T_ARRAY ) ) ; FIOBJ old = fiobj_ary_index ( ary , pos ) ; fiobj_ary_set ( ary , obj , pos ) ; return old ; }
Replaces the object at a specific position, returning the old object
 remember to `fiobj_free` the old object.
Replaces the object at a specific position returning the old object remember to ` fiobj_free ` the old object .