资源描述:
《[Introducing.Erlang(2013.1)].Simon.St.Laurent.文字版》由会员上传分享,免费在线阅读,更多相关内容在学术论文-天天文库。
1、IntroducingErlangSimonSt.LaurentIntroducingErlangbySimonSt.LaurentCopyright©2013SimonSt.Laurent.Allrightsreserved.PrintedintheUnitedStatesofAmerica.PublishedbyO’ReillyMedia,Inc.,1005GravensteinHighwayNorth,Sebastopol,CA95472.O’Reillybooksmaybepurchasedforeduca
2、tional,business,orsalespromotionaluse.Onlineeditionsarealsoavailableformosttitles(http://my.safaribooksonline.com).Formoreinformation,contactourcorporate/institutionalsalesdepartment:800-998-9938orcorporate@oreilly.com.Editors:SimonSt.LaurentandMeghanBlanchett
3、eProductionEditor:MelanieYarbroughCoverDesigner:KarenMontgomeryInteriorDesigner:DavidFutatoIllustrator:RebeccaDemarestJanuary2013:FirstEditionRevisionHistoryfortheFirstEdition:2013-01-23FirstreleaseSeehttp://oreilly.com/catalog/errata.csp?isbn=9781449331764for
4、releasedetails.NutshellHandbook,theNutshellHandbooklogo,andtheO’ReillylogoareregisteredtrademarksofO’ReillyMedia,Inc.IntroducingErlang,thecoverimageofagiantredflyingsquirrel,andrelatedtradedressaretrademarksofO’ReillyMedia,Inc.Manyofthedesignationsusedbymanufa
5、cturersandsellerstodistinguishtheirproductsareclaimedastrademarks.Wherethosedesignationsappearinthisbook,andO’ReillyMedia,Inc.,wasawareofatrade‐markclaim,thedesignationshavebeenprintedincapsorinitialcaps.Whileeveryprecautionhasbeentakeninthepreparationofthisbo
6、ok,thepublisherandauthorassumenoresponsibilityforerrorsoromissions,orfordamagesresultingfromtheuseoftheinformationcontainedherein.ISBN:978-1-449-33176-4[LSI]TableofContentsPreface.......................................................................vii1.Getti
7、ngComfortable.........................................................1Installation1FiringItUp2FirstSteps:TheShell2MovingthroughText3MovingthroughHistory3MovingthroughFiles4DoingSomething4CallingFunctions5NumbersinErlang6WorkingwithVariablesintheShell8SeeingYo
8、urBoundVariables10ClearingBoundVariablesintheShell102.FunctionsandModules......................................................13Funwithfun13DefiningModules15FromModuletoFun17Funct