`
persona
  • 浏览: 2630 次
  • 性别: Icon_minigender_1
  • 来自: 北京
最近访客 更多访客>>
社区版块
存档分类
最新评论
文章列表

RWH CH02 Notes

Haskell is strong and static language.     *Main> head [1..10] 1 *Main> tail [1..10] [2,3,4,5,6,7,8,9,10] *Main> take 3 [1..10] [1,2,3] *Main> drop 3 [1..10] [4,5,6,7,8,9,10] *Main> last [1..10] 10 *Main> fst ('a' , 3) 'a' *Main> snd ('a', 3) 3   We cannot assig ...

RWH CH01 Notes

  Haskell is lazy evaluation!     Prelude> :show bindings Prelude> let x = 2010 Prelude> :show bindings x :: Integer = _ Prelude> x 2010 Prelude> :show bindings it :: Integer = 2010 x :: Integer = 2010 Prelude>   Exercises Answers:   3: The words function cou ...
很久没有重头到尾的认真读一本书了,也许是自己浮躁,也许是各种压力太大,不管目前怎么忙,从今天开始计划读完Real World Haskell。不知道最后能否坚持,先在这里发贴,以提醒自己能坚持读完这本书。
Global site tag (gtag.js) - Google Analytics