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

4
LINES

< > BotCompany Repo | #1002494 - toList - synonym of asList

JavaX fragment (include)

static <A> ArrayList<A> toList(A[] a) { ret asList(a); }
static ArrayList<Integer> toList(int[] a) { ret asList(a); }
static <A> ArrayList<A> toList(Set<A> s) { ret asList(s); }
static <A> ArrayList<A> toList(Iterable<A> s) { ret asList(s); }

Author comment

Began life as a copy of #1002092

download  show line numbers  debug dex   

Travelled to 9 computer(s): aoiabmzegqzx, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, tslmcundralx, tvejysmllsmz

No comments. add comment

Snippet ID: #1002494
Snippet name: toList - synonym of asList
Eternal ID of this version: #1002494/2
Text MD5: 16de33730f04d506ade91766bed94112
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2017-03-25 17:34:53
Source code size: 245 bytes / 4 lines
Pitched / IR pitched: No / No
Views / Downloads: 415 / 366
Version history: 1 change(s)
Referenced in: [show references]

Formerly at http://tinybrain.de/1002494 & http://1002494.tinybrain.de