About: Pure function

An Entity of Type: Abstraction100002137, from Named Graph: http://dbpedia.org, within Data Space: dbpedia.org

In computer programming, a pure function is a function that has the following properties: 1. * the function return values are identical for identical arguments (no variation with local static variables, non-local variables, mutable reference arguments or input streams), and 2. * the function has no side effects (no mutation of local static variables, non-local variables, mutable reference arguments or input/output streams).

Property Value
dbo:abstract
  • In computer programming, a pure function is a function that has the following properties: 1. * the function return values are identical for identical arguments (no variation with local static variables, non-local variables, mutable reference arguments or input streams), and 2. * the function has no side effects (no mutation of local static variables, non-local variables, mutable reference arguments or input/output streams). Thus a pure function is a computational analogue of a mathematical function. Some authors, particularly from the imperative language community, use the term "pure" for all functions that just have the above property 2 (discussed ). (en)
  • En programmation informatique, une fonction pure est une fonction qui possède les propriétés suivantes : 1. * Sa valeur de retour est la même pour les mêmes arguments (pas de variation avec des variables statiques locales, des variables non locales, des arguments mutables de type référence ou des flux d'entrée). 2. * Son évaluation n'a pas d'effets de bord (pas de mutation de variables statiques locales, de variables non locales, d'arguments mutables de type référence ou de flux d'entrée-sortie). Une fonction pure est ainsi un analogue informatique d'une fonction mathématique. Certains auteurs, particulièrement de la communauté des langages impératifs, utilisent le terme "pure" pour désigner les fonctions qui ont uniquement la propriété 2 susmentionnée. (fr)
  • В языках программирования чистая функция — это функция, которая: 1. * является детерминированной; 2. * не обладает побочными эффектами. Наличия только одного из свойств недостаточно для того, чтобы функция была чистой. (ru)
  • 在程序设计中,若一个函数符合以下要求,则它可能被认为是纯函数: * 此函數在相同的输入值時,需產生相同的輸出。函數的輸出和輸入值以外的其他隐藏信息或無關,也和由I/O設備產生的外部輸出無關。 * 该函数不能有语义上可观察的函数副作用,诸如“触发事件”,使輸出設備輸出,或更改輸出值以外物件的內容等。 纯函数的輸出可以不用和所有的輸入值有關,甚至可以和所有的輸入值都無關。但纯函数的輸出不能和輸入值以外的任何資訊有關。纯函数可以傳回多個輸出值,但上述的原則需針對所有輸出值都要成立。若引數是传引用调用,若有對參數物件的更改,就會影響函數以外物件的內容,因此就不是纯函数。 (zh)
dbo:wikiPageID
  • 5619321 (xsd:integer)
dbo:wikiPageLength
  • 10466 (xsd:nonNegativeInteger)
dbo:wikiPageRevisionID
  • 1120854467 (xsd:integer)
dbo:wikiPageWikiLink
dbp:wikiPageUsesTemplate
dcterms:subject
rdf:type
rdfs:comment
  • В языках программирования чистая функция — это функция, которая: 1. * является детерминированной; 2. * не обладает побочными эффектами. Наличия только одного из свойств недостаточно для того, чтобы функция была чистой. (ru)
  • 在程序设计中,若一个函数符合以下要求,则它可能被认为是纯函数: * 此函數在相同的输入值時,需產生相同的輸出。函數的輸出和輸入值以外的其他隐藏信息或無關,也和由I/O設備產生的外部輸出無關。 * 该函数不能有语义上可观察的函数副作用,诸如“触发事件”,使輸出設備輸出,或更改輸出值以外物件的內容等。 纯函数的輸出可以不用和所有的輸入值有關,甚至可以和所有的輸入值都無關。但纯函数的輸出不能和輸入值以外的任何資訊有關。纯函数可以傳回多個輸出值,但上述的原則需針對所有輸出值都要成立。若引數是传引用调用,若有對參數物件的更改,就會影響函數以外物件的內容,因此就不是纯函数。 (zh)
  • In computer programming, a pure function is a function that has the following properties: 1. * the function return values are identical for identical arguments (no variation with local static variables, non-local variables, mutable reference arguments or input streams), and 2. * the function has no side effects (no mutation of local static variables, non-local variables, mutable reference arguments or input/output streams). (en)
  • En programmation informatique, une fonction pure est une fonction qui possède les propriétés suivantes : 1. * Sa valeur de retour est la même pour les mêmes arguments (pas de variation avec des variables statiques locales, des variables non locales, des arguments mutables de type référence ou des flux d'entrée). 2. * Son évaluation n'a pas d'effets de bord (pas de mutation de variables statiques locales, de variables non locales, d'arguments mutables de type référence ou de flux d'entrée-sortie). (fr)
rdfs:label
  • Fonction pure (fr)
  • Pure function (en)
  • Чистота функции (ru)
  • 纯函数 (zh)
  • Чиста функція (uk)
owl:sameAs
prov:wasDerivedFrom
foaf:isPrimaryTopicOf
is dbo:wikiPageDisambiguates of
is dbo:wikiPageRedirects of
is dbo:wikiPageWikiLink of
is rdfs:seeAlso of
is foaf:primaryTopic of
Powered by OpenLink Virtuoso    This material is Open Knowledge     W3C Semantic Web Technology     This material is Open Knowledge    Valid XHTML + RDFa
This content was extracted from Wikipedia and is licensed under the Creative Commons Attribution-ShareAlike 3.0 Unported License