Hacker News new | ask | show | jobs
by nurettin 155 days ago
Why not just

    blocks(Rows, Blocks), maplist(all_distinct, Blocks), maplist(label, Rows)