Funkcionální programování

From Marek Běhálek Wiki
Revision as of 11:09, 7 August 2019 by Beh01 (talk | contribs) (Created page with "<pre style="color: silver; background: black;"> ghci> 313 ^ 15 27112218957718876716220410905036741257 </pre>")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
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