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

10
LINES

< > BotCompany Repo | #1002318 // collectField

JavaX fragment (include)

static L collectField(Iterable c, S field) {
  new L l;
  if (c != null) for (O a : c)
    l.add(getOpt(a, field));
  ret l;
}

static L collectField(S field, Iterable c) {
  ret collectField(c, field);
}

Author comment

Began life as a copy of #1002316

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1002318
Snippet name: collectField
Eternal ID of this version: #1002318/4
Text MD5: 2d49ec30c812123dd2f3047e46111f3a
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-11-21 00:14:48
Source code size: 213 bytes / 10 lines
Pitched / IR pitched: No / No
Views / Downloads: 629 / 2301
Version history: 3 change(s)
Referenced in: [show references]