static S ai_renderAndList_shorten(int maxEntries, L l) { if (l(l) > maxEntries) l = listPlus(takeFirst(maxEntries, l), "some more"); ret ai_renderAndList(l); }