Closure

/ˈkloʊʒər/ noun

Definition

A function that captures and retains access to variables from its surrounding scope even after that scope has finished executing. This allows the function to 'remember' and use those variables later.

Etymology

From Latin 'clausura' meaning 'a shutting' or 'enclosure'. In programming, the term was coined in the 1960s during lambda calculus research, referring to how a function 'closes over' its environment, capturing variables from outside its immediate scope.

Kelly Says

A closure is like a backpack that a function carries with it wherever it goes, containing all the variables it needs from home. Even when the function travels far from where it was created, it still has access to everything in its backpack!

Translations

AMአማርኛ
መዝጋት
ARالعربية
إغلاق
BNবাংলা
বন্ধ
CACatalà
tancament
CSČeština
uzavření
DADansk
lukning
DEDeutsch
Abschluss
ELΕλληνικά
κλείσιμο
ESEspañol
cierre
FAفارسی
بستن
FISuomi
sulkeminen
FRFrançais
fermeture
GUGU
બંધ
HAHA
rufewa
HEעברית
סגירה
HIहिन्दी
समापन
HUMagyar
lezárás
IDBahasa Indonesia
penutupan
IGIG
imepụta
ITItaliano
chiusura
JA日本語
終了
KKKK
жабу
KMKM
ការបិទ
KO한국어
폐쇄
MRMR
बंद
MSBahasa Melayu
penutupan
MYမြန်မာ
ပိတ်ခြင်း
NLNederlands
sluiting
NONorsk
avslutning
PAPA
ਬੰਦ
PLPolski
zamknięcie
PTPortuguês
fechamento
RORomână
închidere
RUРусский
закрытие
SVSvenska
avslutning
SWKiswahili
kufunga
TAதமிழ்
மூடல்
TEతెలుగు
మూసివేత
THไทย
การปิด
TLTL
pagsasara
TRTürkçe
kapanış
UKУкраїнська
закриття
URاردو
بند
VITiếng Việt
đóng cửa
YOYO
ijogbara
ZH中文
关闭
ZUZU
ukuvala

Related Words

Explore More Words

Get the Word Orb API

Complete word intelligence in one call. Free tier — 50 lookups/day.