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

4
LINES

< > BotCompany Repo | #1018278 // asList_nullIfEmpty

JavaX fragment (include)

static <A> ArrayList<A> asList_nullIfEmpty(Iterable<A> s) {
  ArrayList<A> l = asList(s);
  ret empty(l) ? null : l;
}

Author comment

Began life as a copy of #1018277

download  show line numbers  debug dex  old transpilations   

Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1018278
Snippet name: asList_nullIfEmpty
Eternal ID of this version: #1018278/1
Text MD5: 12169bb909cc073352293acbbf2d6f97
Author: stefan
Category: javax / a.i.
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-09-13 17:51:11
Source code size: 121 bytes / 4 lines
Pitched / IR pitched: No / No
Views / Downloads: 272 / 317
Referenced in: [show references]