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

10
LINES

< > BotCompany Repo | #1023213 // collectES - collect extended strings from list (also convert normal strings)

JavaX fragment (include) [tags: use-pretranspiled]

Libraryless. Click here for Pure Java version (1735L/11K).

static L<ES> collectES(Iterable it) {
  new L<ES> out;
  for unnull (O o : it)
    if (o cast S)
      out.add(ext(o));
    else if (o cast Ext)
      if (o! instanceof S)
        out.add(o);
  ret out;
}

Author comment

Began life as a copy of #1022771

download  show line numbers  debug dex  old transpilations   

Travelled to 7 computer(s): bhatertpkbcr, cfunsshuasjs, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1023213
Snippet name: collectES - collect extended strings from list (also convert normal strings)
Eternal ID of this version: #1023213/1
Text MD5: 67f7190e6cd614e04fe511dbf36d3671
Transpilation MD5: 7f7eb62f70df25dc7d862e4bedfbae9c
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-05-16 20:26:36
Source code size: 213 bytes / 10 lines
Pitched / IR pitched: No / No
Views / Downloads: 266 / 339
Referenced in: [show references]