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

4
LINES

< > BotCompany Repo | #1008821 // addIfMatchesPredicate

JavaX fragment (include)

1  
static <A> void addIfMatchesPredicate(Collection<A> l, A a, O pred) {
2  
  if (l != null && isTrue(callF(pred, a)))
3  
    l.add(a);
4  
}

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: #1008821
Snippet name: addIfMatchesPredicate
Eternal ID of this version: #1008821/2
Text MD5: d2268c27be95d2cca6af6b50e0603259
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2017-06-09 03:59:18
Source code size: 131 bytes / 4 lines
Pitched / IR pitched: No / No
Views / Downloads: 551 / 601
Version history: 1 change(s)
Referenced in: [show references]