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

大久保弘崇

ex9

最終更新:

hirotakaohkubo

- view
管理者のみ編集可

9.1


instance Value Int where
  encode k = Int k
  decode (Int k) = k
 
instance Value a => Value [a] where
  encode = foldr (Cons . encode) Nil
  decode Nil = []
  decode (Cons x xs) = decode x : decode xs
 

9.2

差分リストのオンラインで読める説明としては http://www.geocities.jp/m_hiroi/prolog/prolog04.html がある。ただし若干のPrologの知識を必要とする。


コメント

名前:
コメント:
記事メニュー
最近更新されたスレッド
人気記事ランキング
ウィキ募集バナー