アットウィキロゴ
大久保弘崇
掲示板 掲示板 ページ検索 ページ検索 メニュー メニュー

大久保弘崇

Ch5

最終更新:

hirotakaohkubo

- view
管理者のみ編集可

p.89 L.-15, -3 Errata

Add ')' before '=>'

p.90 show for List based Stack

Re-construction of Stk xs from Stk (x:xs) made me sorrow.
showsPrec _ (Stk []) = showChar '-'
showsPrec _ (Stk s)  = foldr (\x y->shows x.showChar '|'.y) (showChar '-') s
 

p.94 def of inSet

Single comparison to x
inSet x (St s) = (not.null.takeWhile (== x).dropWhile (< x)) s
 
記事メニュー
最近更新されたスレッド
人気記事ランキング
ウィキ募集バナー