Comment on Ask HN: What's the most elegant piece of code you've seen?Comments−pillmuncher10yFrom Sterling and Shapiro's "The Art of Prolog" a procedure to concat two difference lists in O(1) time (from memory): append_dl(A - B, B - C, A - C).
Comments
From Sterling and Shapiro's "The Art of Prolog" a procedure to concat two difference lists in O(1) time (from memory):