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

11
LINES

< > BotCompany Repo | #1002092 // list - synonym of asList. Note: Dynamic Concepts overrides this

JavaX fragment (include)

static <A> ArrayList<A> list(A[] a) {
  ret asList(a);
}

static ArrayList<Integer> list(int[] a) {
  ret asList(a);
}

static <A> ArrayList<A> list(Set<A> s) {
  ret asList(s);
}

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: #1002092
Snippet name: list - synonym of asList. Note: Dynamic Concepts overrides this
Eternal ID of this version: #1002092/1
Text MD5: 920c2a23f99c281c71dc4281a7f8eb50
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2016-12-19 22:53:24
Source code size: 189 bytes / 11 lines
Pitched / IR pitched: No / No
Views / Downloads: 616 / 1031
Referenced in: [show references]