function EntryPage::lay_comment_loop (Comment[] incoming, Comment[] stored) : Comment[] { if (size $incoming == 0) { return $stored; } foreach var Comment c ($incoming) { $stored[size $stored] = $c; $this->lay_comment_loop ($c.replies, $stored); } return $stored; }
(Ņem vērā, ka parasti neviens neizvēlas atbildēt uz pilnīgi anonīmiem komentāriem!)