1 | static L<PairS> ai_findSuffixAddedElementsInSet(Set<S> set, S addedSuffix) { |
2 | new L<PairS> out; |
3 | for unnull (S s : set) { |
4 | S x = s + addedSuffix; |
5 | if (set.contains(x)) |
6 | addPair(out, s, x); |
7 | } |
8 | ret out; |
9 | } |
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: | #1022733 |
Snippet name: | ai_findSuffixAddedElementsInSet |
Eternal ID of this version: | #1022733/3 |
Text MD5: | e9782802cf0a7e4c22980e6824fe8cc6 |
Author: | stefan |
Category: | javax / a.i. |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2019-04-03 19:31:26 |
Source code size: | 226 bytes / 9 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 300 / 354 |
Version history: | 2 change(s) |
Referenced in: | [show references] |