Skip to main content
arrow

arrow

30 6.8
A short way to write a function in code using =>
  • noun
  • /ˈɛroʊ/
  • Jargon
translation icon : función flecha
  • So what I'm going to do is I'm going to say add of X is Lambda Y arrow X + y.

Examples

  • In JavaScript, an arrow function allows you to write shorter function expressions using the => syntax.

  • The arrow will be an amazing achievement, sir.

  • How close are we to a fully assembled arrow?

  • He's a total straight arrow.

  • In your R console, you'll always type commands after the arrow or>.

  • You can create a quick callback by using an arrow function when passing parameters to a method.

  • In programming, the arrow syntax is popular for functions that need to retain the lexical context of 'this'.

Synonyms

lambda
vsarrow
  • Specialized
3 7.6

A small unnamed function written directly in code for short tasks

is a concise language-specific function using => syntax with lexical this binding

Idioms

An extra skill or resource you can use when needed

To do one thing that solves two problems

Compounds

22 3.3

A weapon using a curved bow to shoot arrows for hunting or fighting

straight arrow
  • Informal
2 5.9

A person who always tells the truth and follows moral rules

broad arrow
  • Archaic
8.9

A wide arrowhead used on weapons in past battles

broad arrow
  • Archaic
9.9

A mark like an arrowhead that shows something belongs to the British government

arrow arum
  • Specialized
9.9

A North American water plant with arrow-shaped leaves and greenish flower spikes

arrow grass
  • Specialized
9.9

A plant that grows in shallow water or marshes and can poison farm animals

8.9

A bush with tough, flexible wood that people use to make arrows

arrow-grass family
  • Specialized
8.6

A group of small grass-like plants that grow in wet places such as marshes

arrow-leaved aster
  • Specialized
9.9

A North American wildflower with arrow-shaped leaves and purple flowers

A plant that lives for many years with arrowhead leaves, a long pointed flower cover, and green berries

poison arrow plant
  • South African
9.9

A medium-sized evergreen shrub or tree from South Africa with thick leaves and purplish black berries

A shrub with flexible wood used to make arrows and blue-black berries that birds eat

Surface Forms

arrow singular
arrows plural

Etymology

Arrow in programming gets its name from the small sign '=>' that looks like an arrow, so programmers call short functions 'arrow' functions because the symbol points from inputs to output. This is why arrow now also means a concise function form in code.