1 | static <A> A firstContainedInSet(Iterable<A> l, Set<A> set) { |
2 | if (l == null || empty(set)) null; |
3 | for (A a : l) |
4 | if (set.contains(a)) |
5 | ret a; |
6 | null; |
7 | } |
download show line numbers debug dex old transpilations
Travelled to 14 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1017221 |
Snippet name: | firstContainedInSet |
Eternal ID of this version: | #1017221/1 |
Text MD5: | 2c25adc41764c22aba548c17050dee48 |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2018-07-14 13:19:52 |
Source code size: | 168 bytes / 7 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 367 / 386 |
Referenced in: | [show references] |