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)

1  
static <A> ArrayList<A> list(A[] a) {
2  
  ret asList(a);
3  
}
4  
5  
static ArrayList<Integer> list(int[] a) {
6  
  ret asList(a);
7  
}
8  
9  
static <A> ArrayList<A> list(Set<A> s) {
10  
  ret asList(s);
11  
}

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