spread operator

From Wiktionary, the free dictionary
Jump to navigation Jump to search

English[edit]

Noun[edit]

spread operator (plural spread operators)

  1. (programming) An operator that expands an array or similar data structure into its individual elements.
    Coordinate term: rest operator
    • 2021, David Greenhalgh, ‎Josh Skeen, ‎Andrew Bailey, Kotlin Programming: The Big Nerd Ranch Guide
      The spread operator causes the elements of a collection to be treated as individual parameters to functions that accept a variable number of arguments.

Related terms[edit]