17 lines
		
	
	
		
			631 B
		
	
	
	
		
			Markdown
		
	
	
	
	
	
			
		
		
	
	
			17 lines
		
	
	
		
			631 B
		
	
	
	
		
			Markdown
		
	
	
	
	
	
up:: [[programmation.fonction|fonction]]
 | 
						|
#s/informatique 
 | 
						|
 | 
						|
> [!definition] fonction pure
 | 
						|
> Une fonction pure est une fonction :
 | 
						|
> - déterministe (les mêmes entrée donnent toujours les mêmes valeurs)
 | 
						|
> - sans [[programmation.effet de bord|effet de bord]] 
 | 
						|
^definition
 | 
						|
 | 
						|
 | 
						|
 | 
						|
> [!cite]- [What Is Functional Programming?](zotero://select/groups/5383243/items/TLUTFXJ8) - [Page ](zotero://open-pdf/groups/5383243/items/8P4TX53J?annotation=S979DXY2)
 | 
						|
> A function is called 'pure' if all its inputs are declared as
 | 
						|
> inputs - none of them are hidden - and likewise all its outputs are
 | 
						|
> declared as outputs.
 | 
						|
> ^S979DXY2a8P4TX53Jg5383243
 |