Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

5
LINES

< > BotCompany Repo | #1014593 // ai_renderAndList_shorten

JavaX fragment (include)

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);
}

Author comment

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: 346 / 385
Referenced in: [show references]