Difference between revisions of "Functional programming"

From Marek Běhálek Wiki
Jump to navigation Jump to search
Line 1: Line 1:
 
<languages />
 
<languages />
 
<translate>
 
<translate>
 +
<languages />
 
== Functional Programming == <!--T:1-->
 
== Functional Programming == <!--T:1-->
 
As the expressions above imply, Haskell has a notion of integers
 
As the expressions above imply, Haskell has a notion of integers

Revision as of 10:48, 7 August 2019

Other languages:
English • ‎čeština
Other languages:
English • ‎čeština

Functional Programming

As the expressions above imply, Haskell has a notion of integers and floating point numbers. Integers can be arbitrarily large. Here, ~(^)~ provides integer exponentiation.

ghci> 313 ^ 15
27112218957718876716220410905036741257
def quickSort(arr):
	less = []
	pivotList = []
	more = []
	if len(arr) <= 1:
		return arr
	else:
		pass