Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

The one_to_one_equal example only works for sets, it looks like. This is a popular example in the Prolog literature, where they say

    sort(A, B) :- permute(A, B), ascending(B).
(permute corresponds to your one_to_one_equal.)


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: