Haskellismostlikelyquitedifferentfromanylanguageyouveeverusedbefore.Comparedtotheusualsetofconceptsinaprogrammersmentaltoolbox,functionalprogrammingoffersusaprofoundlydifferentwaytothinkaboutsoftware.InHaskell,wedeemphasizecodethatmodifiesdata.Instead,wefocusonfunctionsthattakeimmutablevaluesasinputandproducenewvaluesasoutput.Giventhesameinputs,thesefunctionsalwaysreturnthesameresults.Thisisacoreideabehindfunctionalprogramming.
阅读更多