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

5
LINES

< > BotCompany Repo | #1007691 // findInteger - return first string in list that is an integer

JavaX fragment (include)

static S findInteger(L<S> l) {
  for (S s : unnull(l))
    if (isInteger(s)) ret s;
  null;
}

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1007691
Snippet name: findInteger - return first string in list that is an integer
Eternal ID of this version: #1007691/1
Text MD5: 5a5c173bd3ea6afe317824c68d65a92c
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2017-04-02 14:48:00
Source code size: 97 bytes / 5 lines
Pitched / IR pitched: No / No
Views / Downloads: 494 / 476
Referenced in: [show references]