I just edited an answer to correct the link rot, and I realize that the official policy is that it's better to include a copy of the function than to merely provide a link. However, the method is over 60 lines long. Since it's not my answer, I'm not going to substantially change what it says, but I do think it would be appropriate to include a more durable reference to the function mentioned. Stack Overflow doesn't have folding regions, and copying the whole function would cause clutter.
Is there any proper editorial technique besides rewriting (someone else's post) so as to not mention a whole function?