The Haskell School of Music

The Haskell School of Music

ID:39814458

大小:2.57 MB

页数:400页

时间:2019-07-11

The Haskell School of Music_第1页
The Haskell School of Music_第2页
The Haskell School of Music_第3页
The Haskell School of Music_第4页
The Haskell School of Music_第5页
资源描述:

《The Haskell School of Music》由会员上传分享,免费在线阅读,更多相关内容在学术论文-天天文库

1、TheHaskellSchoolofMusic—FromSignalstoSymphonies—PaulHudakYaleUniversityDepartmentofComputerScienceVersion2.6(January2014)iTheHaskellSchoolofMusic—FromSignalstoSymphonies—PaulHudakYaleUniversityDepartmentofComputerScienceNewHaven,CT,USAVersion2.6(January2014)CopyrightcPaulHudakJanuary2011

2、,2012,2013,2014Allrightsreserved.Nopartofthispublicationmaybereproducedordistributedinanyformorbyanymeans,orstoredinadatabaseorretrievalsystem,withoutthepriorwrittenpermissionoftheauthor.Coverimage:Euterpe,theGreekMuseofMusic(attributionunknown)ContentsPrefacexv1ComputerMusic,Euterpea,and

3、Haskell11.1TheNotevs.SignalDichotomy.................21.2BasicPrinciplesofProgramming................31.3ComputationbyCalculation...................41.4ExpressionsandValues.....................81.5Types...............................101.6FunctionTypesandTypeSignatures..............111.7Ab

4、straction,Abstraction,Abstraction.............131.7.1Naming..........................131.7.2FunctionalAbstraction..................161.7.3DataAbstraction.....................191.8HaskellEqualityvs.EuterpeanEquality............221.9CodeReuseandModularity...................231.10[Advanced]P

5、rogrammingwithNumbers............242SimpleMusic282.1Preliminaries...........................282.2Notes,Music,andPolymorphism................302.3ConvenientAuxiliaryFunctions.................342.3.1ASimpleExample....................362.4AbsolutePitches.........................41iiCONTENTSi

6、ii3Polymorphic&Higher-OrderFunctions453.1PolymorphicTypes........................463.2AbstractionOverRecursiveDefinitions.............473.2.1MapisPolymorphic...................493.2.2Usingmap........................503.3Append..............................513.3.1[Advanced]TheEfficiencyandFix

7、ityofAppend...523.4Fold................................533.4.1Haskell’sFolds......................553.4.2[Advanced]WhyTwoFolds?..............563.4.3FoldforNon-emptyLists................573.5[Advanced]AFinalExample:Reverse.............583.6Currying...................

当前文档最多预览五页,下载文档查看全文

此文档下载收益归作者所有

当前文档最多预览五页,下载文档查看全文
温馨提示:
1. 部分包含数学公式或PPT动画的文件,查看预览时可能会显示错乱或异常,文件下载后无此问题,请放心下载。
2. 本文档由用户上传,版权归属用户,天天文库负责整理代发布。如果您对本文档版权有争议请及时联系客服。
3. 下载前请仔细阅读文档内容,确认文档内容符合您的需求后进行下载,若出现内容与标题不符可向本站投诉处理。
4. 下载文档时可能由于网络波动等原因无法下载或下载错误,付费完成后未能成功下载的用户请联系客服处理。