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).

1  
static L<ES> collectES(Iterable it) {
2  
  new L<ES> out;
3  
  for unnull (O o : it)
4  
    if (o cast S)
5  
      out.add(ext(o));
6  
    else if (o cast Ext)
7  
      if (o! instanceof S)
8  
        out.add(o);
9  
  ret out;
10  
}

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