资源描述:
《Programming in Scala-A Comprehensive Step-by-Step Guide》由会员上传分享,免费在线阅读,更多相关内容在学术论文-天天文库。
1、Cover·Overview·Contents·Discuss·Suggest·Glossary·IndexProgramminginScalaCover·Overview·Contents·Discuss·Suggest·Glossary·IndexProgramminginScalaMartinOdersky,LexSpoon,BillVennersartimaARTIMAPRESSMOUNTAINVIEW,CALIFORNIACover·Overview·Contents·Discuss·Suggest·Gl
2、ossary·IndexivProgramminginScalaFirstEdition,Version6MartinOderskyisthecreatoroftheScalalanguageandaprofessoratEPFLinLausanne,Switzerland.LexSpoonworkedonScalafortwoyearsasapost-docwithMartinOdersky.BillVennersispresidentofArtima,Inc.ArtimaPressisanimprintofAr
3、tima,Inc.P.O.Box390122,MountainView,California94039Copyright©2007,2008MartinOdersky,LexSpoon,andBillVenners.Allrightsreserved.FirsteditionpublishedasPrePrint™eBook2007Firsteditionpublished2008ProducedintheUnitedStatesofAmerica121110090856789ISBN-10:0-9815316-1
4、-XISBN-13:978-0-9815316-1-8Nopartofthispublicationmaybereproduced,modified,distributed,storedinaretrievalsystem,republished,displayed,orperformed,forcommercialornoncommercialpurposesorforcompensationofanykindwithoutpriorwrittenpermissionfromArtima,Inc.Allinform
5、ationandmaterialsinthisbookareprovided"asis"andwithoutwarrantyofanykind.Theterm“Artima”andtheArtimalogoaretrademarksorregisteredtrademarksofArtima,Inc.Allothercompanyand/orproductnamesmaybetrademarksorregisteredtrademarksoftheirowners.Cover·Overview·Contents·D
6、iscuss·Suggest·Glossary·IndextoNastaran-M.O.toFay-L.S.toSiew-B.V.Cover·Overview·Contents·Discuss·Suggest·Glossary·IndexOverviewContentsviiListofFiguresxviiListofTablesxixListofListingsxxForewordxxviiAcknowledgmentsxxixIntroductionxxxi1.AScalableLanguage392.Fir
7、stStepsinScala583.NextStepsinScala714.ClassesandObjects935.BasicTypesandOperations1076.FunctionalObjects1297.Built-inControlStructures1498.FunctionsandClosures1739.ControlAbstraction19410.CompositionandInheritance20911.Scala’sHierarchy23712.Traits24513.Package
8、sandImports26414.AssertionsandUnitTesting27915.CaseClassesandPatternMatching29316.WorkingwithLists32717.Collections35918.StatefulObjects38719.TypeParameterization41020.AbstractMemb