static S ai_renderAndList_shorten(int maxEntries, L<S> l) { if (l(l) > maxEntries) l = listPlus(takeFirst(maxEntries, l), "some more"); ret ai_renderAndList(l); }
Began life as a copy of #1012368
download show line numbers debug dex old transpilations
Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1014593 |
Snippet name: | ai_renderAndList_shorten |
Eternal ID of this version: | #1014593/1 |
Text MD5: | d1222b37d6bf08d0faa9f81eb84b1754 |
Author: | stefan |
Category: | javax / a.i. |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2018-04-24 14:04:20 |
Source code size: | 174 bytes / 5 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 348 / 387 |
Referenced in: | #1006654 - Standard functions list 2 (LIVE, continuation of #761) |