Mercury 勉強メモ

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

2014-03-08から1日間の記事一覧

P-99: 1.26 Generate the combinations of K distinct objects chosen from the N elements of a list

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

P-99: 1.25 Generate a random permutation of the elements of a list

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