Difference between revisions of "Functional programming"

From Marek Běhálek Wiki
Jump to navigation Jump to search
Line 1: Line 1:
 
<languages />
 
<languages />
{{Extension-Translate}}
+
{{Extension
 +
|name      = Translate
 +
|status    = stable
 +
|type1    = special
 +
|type2    = locale
 +
|type3    = api
 +
|type4    = parser function
 +
|hook1    = ResourceLoaderTestModules
 +
|hook2    = UnitTestsList
 +
|hook3    = LoadExtensionSchemaUpdates
 +
|hook4    = ParserTestTables
 +
|hook5    = PageContentLanguage
 +
|hook6    = ResourceLoaderRegisterModules
 +
|hook7    = EditPage::showEditForm:initial
 +
|hook8    = AlternateEdit
 +
|hook9    = getUserPermissionsErrorsExpensive
 +
|hook10    = EditPageBeforeEditButtons
 +
|hook11    = LanguageGetTranslatedLanguageNames
 +
|hook12    = TranslateSupportedLanguages
 +
|hook13    = ArticlePrepareTextForEdit
 +
|hook14    = ParserFirstCallInit
 +
|hook15    = UserGetReservedNames
 +
|hook16    = LinksUpdate
 +
|hook17    = PageContentSaveComplete
 +
|hook18    = Translate:newTranslation
 +
|hook19    = SkinTemplateNavigation::SpecialPage
 +
|hook20    = GetPreferences
 +
|hook21    = ChangesListSpecialPageQuery
 +
|hook22    = SpecialRecentChangesPanel
 +
|hook23    = ChangesListSpecialPageStructuredFilters
 +
|hook24    = BaseTemplateToolbox
 +
|hook25    = AbortEmailNotification
 +
|hook26    = ArticleDeleteComplete
 +
|hook27    = TranslateEventMessageMembershipChange
 +
|hook28    = ArticleContentOnDiff
 +
|hook29    = SpecialSearchProfiles
 +
|hook30    = SpecialSearchProfileForm
 +
|hook31    = SpecialSearchSetupEngine
 +
|hook32    = TitleIsAlwaysKnown
 +
|hook33    = Translate:MessageGroupStats:isIncluded
 +
|hook34    = MakeGlobalVariablesScript
 +
|hook35    = TranslateEventTranslationReview
 +
|hook36    = TranslatePostInitGroups
 +
|hook37    = TranslateInitGroupLoaders
 +
|hook38    = AdminLinks
 +
|hook39    = MergeAccountFromTo
 +
|hook40    = DeleteAccount
 +
|hook41    = AbuseFilter-filterAction
 +
|hook42    = AbuseFilter-computeVariable
 +
|hook43    = AbuseFilter-builder
 +
|hook44    = EditFilterMergedContent
 +
|newhook1  = Translate:GettextFFS:headerFields
 +
|newhook2  = Translate:MessageGroupStats:isIncluded
 +
|newhook3  = Translate:modifyMessageGroupStates
 +
|newhook4  = Translate:newTranslation
 +
|newhook5  = TranslateBeforeAddModules
 +
|newhook6  = TranslateEventMessageGroupStateChange
 +
|newhook7  = TranslateEventMessageMembershipChange
 +
|newhook8  = TranslateEventTranslationReview
 +
|newhook9  = TranslateGetAPIMessageGroupsParameterList
 +
|newhook10 = TranslateGetAPIMessageGroupsPropertyDescs
 +
|newhook11 = TranslateGetBoxes
 +
|newhook12 = TranslateGetSpecialTranslateOptions
 +
|newhook13 = TranslateInitGroupLoaders
 +
|newhook14 = TranslateMessageGroupPathVariables
 +
|newhook15 = TranslatePostInitGroups
 +
|newhook16 = TranslatePrefillTranslation
 +
|newhook17 = TranslateProcessAPIMessageGroupsProperties
 +
|newhook18 = TranslateSupportedLanguages
 +
|newhook19 = TranslateTranslationAids
 +
|author    = <translate><!--T:1--> Niklas Laxström, Siebrand Mazeland and others</translate>
 +
|image    = Translate_manual_-_Page_example_-_19._Documentation.png
 +
|version  = <translate><!--T:2--> Dated snapshots from time to time</translate>
 +
|mediawiki = 1.32+
 +
|compatibility policy = master
 +
|license  = GPL-2.0-or-later
 +
|download  = {{ll|MLEB|<translate><!--T:3--> Included in Language Extension Bundle</translate>}}
 +
----
 +
{{WikimediaDownload}}
 +
|readme    = {{ll|Help:Extension:Translate|<translate><!--T:4--> User documentation</translate>}}
 +
|changelog =
 +
|description = <translate><!--T:54--> Enables in-wiki translation and proofreading</translate>
 +
|example  = <translate><!--T:5--> [[<tvar|twn>translatewiki:Special:Translate</>|Translatewiki.net]] – or [<tvar|meta>//meta.wikimedia.org/w/index.php?title=Special%3ATranslate&taction=translate&group=page-Terms+of+use&task=view</> try how to translate a page now]</translate>
 +
|pagedrive1 = true
 +
|bugzilla  = Translate
 +
|composer  = mediawiki/translate
 +
|needs-updatephp = Yes
 +
|translate = ext-translate-0-all
 +
}}
 
<translate>
 
<translate>
 
== Functional Programming == <!--T:1-->
 
== Functional Programming == <!--T:1-->

Revision as of 10:55, 7 August 2019

Other languages:
English • ‎čeština

Template:Extension

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