Commentaries in kōan collections bear some similarity to judicial decisions that cite and sometimes modify precedents.
Gong'an was itself originally a metaphor-an article of furniture that came to denote legal precedents.