Libraryless. Click here for Pure Java version (3794L/22K).
static <A> void forEach(Iterable<A> l, IVF1<A> f) { if (f != null && l != null) for (A a : l) callF(f, a); } static <A> void lambdaMapLike forEach(IVF1<A> f, Iterable<A> l) { forEach(l, f); } static <A> void forEach(A[] l, IVF1<A> f) { if (f != null && l != null) for (A a : l) callF(f, a); } static <A> void forEach(IVF1<A> f, A[] l) { forEach(l, f); } static <A, B> void forEach(Map<A, B> map, IVF2<A, B> f) { for (A a, B b : map) f.get(a, b); }
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: | 942 / 1180 |
| Version history: | 7 change(s) |
| Referenced in: | [show references] |