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

5
LINES

< > BotCompany Repo | #1003382 // ll - synonym of litlist (literal list)

JavaX fragment (include)

static <A> List<A> ll(A... a) {
  ArrayList l = new(a.length);
  if (a != null) for (A x : a) l.add(x);
  ret l;
}

Author comment

Began life as a copy of #1001047

download  show line numbers  debug dex  old transpilations   

Travelled to 20 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, ddnzoavkxhuk, ekrmjmnbrukm, gwrvuhgaqvyk, ishqpsrjomds, lnbujpyubztb, lpdgvwnxivlt, mowyntqkapby, mqqgnosmbjvj, onxytkatvevr, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt, whxojlpjdney, xrpafgyirdlv

No comments. add comment

Snippet ID: #1003382
Snippet name: ll - synonym of litlist (literal list)
Eternal ID of this version: #1003382/4
Text MD5: c606d3955c93922d583f46d39ab85749
Author: stefan
Category:
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-06-29 04:27:55
Source code size: 118 bytes / 5 lines
Pitched / IR pitched: No / No
Views / Downloads: 819 / 2174
Version history: 3 change(s)
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)
#1006902 - llNonNulls - literal list, include only non-null elements
#1018116 - ll_linkedList - literal LinkedList
#1023568 - llNotNulls
#1024184 - litsynclist - syncList with entries
#1024979 - llQuoted
#1028578 - ll_iterator - iterator of fixed size list