Mercury 勉強メモ

関数論理型言語 Mercury を勉強するブログです.

2014-01-01から1年間の記事一覧

P-99: 1.21 Insert an element at a given position into a list

P-99: Ninety-Nine Prolog Problemsの問題にMercuryで解答していきます. ["a", "alfa", "b", "c", "d"]

P-99: 1.20 Remove the K'th element from a list

P-99: Ninety-Nine Prolog Problemsの問題にMercuryで解答していきます. b ["a", "c", "d"]

P-99: 1.19 Rotate a list N places to the left

P-99: Ninety-Nine Prolog Problemsの問題にMercuryで解答していきます. ["d", "e", "f", "g", "h", "a", "b", "c"] ["g", "h", "a", "b", "c", "d", "e", "f"]