e/Fold (higher-order function)

New Query

Information
has glosseng: In functional programming, fold, also known variously as reduce, accumulate, compress or inject, is a family of higher-order functions that iterate an arbitrary function over a data structure in some order and build up a return value. Typically, a fold deals with two things: a combining function and a list of elements of some data structure. The fold then proceeds to combine elements of the data structure using the function in some systematic way.
lexicalizationeng: Fold
instance ofe/Higher-order function
Meaning
Dutch
has glossnld: Functionele programmeertalen bezitten een aantal fold (of reduce) hogere-orde functies waarmee een datastructuur (vaak een lijst) in een bepaalde volgorde wordt doorlopen en gaandeweg een bepaalde waarde wordt berekend. Een foldfunctie maakt gebruik van twee zaken: een functie die elementen van de datastructuur combineert en de datastructuur zelf. Een voorbeeld:
lexicalizationnld: fold
Polish
has glosspol: Fold (z ang. składać, zwijać) to rodzina funkcji wyższego rzędu występująca w językach funkcyjnych. Znana jest również jako reduce, accumulate, compress bądź inject. Funkcje fold przetwarzają uporządkowane kolekcje danych (zazwyczaj listy) w celu zbudowania końcowego wyniku przy pomocy jakiejś funkcji łączącej elementy. Dwie najbardziej popularne funkcje z tej rodziny to foldr (fold right) i foldl (fold left)
lexicalizationpol: fold
Moldavian
has glossron: În programarea funcţională, fold sau reduce sau accumulate este o familie de funcţii de ordin înalt care procesează o structură de date într-o anumită ordine şi construieşte o valoare de returnat. Aceasta este opusă familiei de funcţii unfold care primesc o valoare de start şi aplică o funcţie asupra ei pentru a genera o structură de date. De obicei, o funcţie fold este formată din două entităţi: o funcţie de combinare şi o structură de date, de obicei o listă de elemente. Astfel, funcţia combină elementele structurii de date într-un anumit mod sistematic.
lexicalizationron: fold
Russian
has glossrus: В программировании свёртка (, также известна как reduce и accumulate) — функция высшего порядка, которая производит преобразование структуры данных к единственному атомарному значению при помощи заданной функции. Операция свёртки часто используется в функциональном программировании при обработке списков.
lexicalizationrus: Свертка списка
lexicalizationrus: Свёртка списка
Media
media:imgFoldl1-diagram-PNG.png
media:imgFoldr1-diagram-PNG.png
media:imgLeft-fold-transformation.png
media:imgRight-fold-transformation.png

Query

Word: (case sensitive)
Language: (ISO 639-3 code, e.g. "eng" for English)


Lexvo © 2008-2025 Gerard de Melo.   Contact   Legal Information / Imprint