Libraryless. Click here for Pure Java version (3794L/22K).
1 | static <A> void forEach(Iterable<A> l, IVF1<A> f) {
|
2 | if (f != null && l != null) for (A a : l) |
3 | callF(f, a); |
4 | } |
5 | |
6 | static <A> void lambdaMapLike forEach(IVF1<A> f, Iterable<A> l) {
|
7 | forEach(l, f); |
8 | } |
9 | |
10 | static <A> void forEach(A[] l, IVF1<A> f) {
|
11 | if (f != null && l != null) for (A a : l) |
12 | callF(f, a); |
13 | } |
14 | |
15 | static <A> void forEach(IVF1<A> f, A[] l) {
|
16 | forEach(l, f); |
17 | } |
18 | |
19 | static <A, B> void forEach(Map<A, B> map, IVF2<A, B> f) {
|
20 | for (A a, B b : map) |
21 | f.get(a, b); |
22 | } |
download show line numbers debug dex old transpilations
Travelled to 8 computer(s): bhatertpkbcr, cfunsshuasjs, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt, xrpafgyirdlv
No comments. add comment
| Snippet ID: | #1022895 |
| Snippet name: | forEach |
| Eternal ID of this version: | #1022895/8 |
| Text MD5: | f23657a08e19e21286dad2784329d206 |
| Transpilation MD5: | 55a6a89bcc540d17b5874fa16201ab70 |
| Author: | stefan |
| Category: | javax |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2021-10-15 20:49:06 |
| Source code size: | 494 bytes / 22 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 945 / 1184 |
| Version history: | 7 change(s) |
| Referenced in: | [show references] |