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

7
LINES

< > BotCompany Repo | #1022771 // stringsOnly

JavaX fragment (include)

static LS stringsOnly(Iterable it) {
  new LS out;
  for unnull (O o : it)
    if (o cast S)
      out.add(o);
  ret out;
}

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1022771
Snippet name: stringsOnly
Eternal ID of this version: #1022771/1
Text MD5: cccae5082bb72f62910682d8e526f40e
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-04-06 19:36:55
Source code size: 129 bytes / 7 lines
Pitched / IR pitched: No / No
Views / Downloads: 281 / 332
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)
#1023213 - collectES - collect extended strings from list (also convert normal strings)
#1031189 - stringsOnly_orderedSet