Predefined function reference

list_auto_populate

A reference entry for list_auto_populate

Predefined function · list

list_auto_populate (integer count, function process[, list l]) ⇒ list

Returns a list with count autofilled items and generated by a function, process. A list, l, can be specified to append to.

Examples

YASS
$l = list_auto_populate(100, function()
  return random_number(0, 100)
end function)
print($l)