Closure
No established Kurdish equivalent yetهێشتا هاوتای کوردیی جێگیر نییە
No established Kurdish equivalent yetهێشتا هاوتای کوردیی جێگیر نییە Definitionپێناسە
A that remembers the around the place where it was written, and can still use and change them after the outer function has finished.
کە ئەو لە بیر دەمێنێت کە لە دەوروبەری ئەو شوێنەدا بوون کە تێیدا نووسرا و دوای تەواوبوونی دەرەوەش دەتوانێت بەکاریان بهێنێت و بیانگۆڕێت.
Exampleنموونە
Each counter that makeCounter() returns keeps its own count.
هەر کە makeCounter() دەیگەڕێنێتەوە countـی خۆی دەپارێزێت.
int Function() makeCounter() {
var count = 0;
return () => ++count;
}Note on the Kurdish termتێبینی دەربارەی زاراوە کوردییەکە
No established Kurdish term was found, so the English word is shown in Kurdish text. A candidate for linguistic review: «کرداری داخراو» (a calque of the Persian «بستار» and the Arabic «إغلاق»).