Comment detail
n日後を返す関数を返す関数 (Nested Flatten)
call(foo(A), B) は call(foo, A, B) と同じなので assart/1 を使わずに以下のように書けると思います。
1 2 | n_days_later_pred(N, T, R) :- R is T + N * 86400.
n_days_later(N, n_days_later_pred(N)).
|
1 2 | n_days_later_pred(N, T, R) :- R is T + N * 86400.
n_days_later(N, n_days_later_pred(N)).
|
katsu
#1319()
[
Prolog
]
Rating0/0=0.00
Rating0/0=0.00-0+
1 reply [ reply ]