tie-knot (hackage): "Ties the knot" on a given set of structures that reference each other by keys - replaces the keys with their respective values.
Keywords: data-structures|library|recursion