Function Byond_WriteListIndex

Source
pub unsafe extern "C-unwind" fn Byond_WriteListIndex(
    loc: *const CByondValue,
    idx: *const CByondValue,
    val: *const CByondValue,
) -> bool
Expand description

Writes an item to a list. Blocks if not on the main thread.

§Arguments

  • loc - The list
  • idx - The index in the list (may be a number, or a non-number if using associative lists)
  • val - New value

§Returns

True on success