欢迎来到天天文库
浏览记录
ID:40390165
大小:738.16 KB
页数:176页
时间:2019-08-01
《Learn You a Haskell for Great Good!》由会员上传分享,免费在线阅读,更多相关内容在学术论文-天天文库。
1、LearnYouaHaskellforGreatGood!MiranLipovacaˇ2Contents1Introduction51.1Aboutthistutorial..........................51.2Sowhat’sHaskell?..........................61.3Whatyouneedtodivein......................72StartingOut92.1Ready,set,go!.............................92.2Baby’sfirstfunct
2、ions.........................122.3Anintrotolists............................132.4Texasranges..............................172.5I’malistcomprehension.......................182.6Tuples...................................213TypesandTypeclasses253.1Believethetype.......................
3、.....253.2Typevariables.............................273.3Typeclasses101............................284SyntaxinFunctions334.1Patternmatching...........................334.2Guards,guards!............................374.3Where!?.................................394.4Letitbe...........
4、.....................404.5Caseexpressions...........................425Recursion455.1Hellorecursion!............................455.2Maximumawesome.........................465.3Afewmorerecursivefunctions..................475.4Quick,sort!..............................495.5Thinkingr
5、ecursively.........................506Higherorderfunctions516.1Curriedfunctions............................516.2Somehigher-orderismisinorder.................536.3Mapsandfilters............................566.4Lambdas................................596.5Onlyfoldsandhorses...........
6、..............616.6Functionapplicationwith$.....................6434CONTENTS6.7Functioncomposition........................657Modules697.1Loadingmodules...........................697.2Data.List.................................717.3Data.Char...............................797.4Data.M
7、ap................................837.5Data.Set.................................877.6Makingourownmodules......................888MakingOurOwnTypesandTypeclasses938.1Algebraicdatatypesintro......................938.2Recordsyntax.............................968.3Typeparameters......
8、......................988.4Derive
此文档下载收益归作者所有