Libraryless. Click here for Pure Java version (2146L/14K).
1 | static <A> Steppable steppable_forEach(Iterable<A> items, VF1<A> f) {
|
2 | ret steppable_forEach(items, (O) f); |
3 | } |
4 | |
5 | static <A> Steppable steppable_forEach(Iterable<A> items, IVF1<A> f) {
|
6 | ret steppable_forEach(items, (O) f); |
7 | } |
8 | |
9 | static <A> Steppable steppable_forEach(Iterable<A> items, O f) {
|
10 | ret new Steppable {
|
11 | Iterator<A> it = iterator(items); |
12 | public bool step() { // return false if done
|
13 | if (!it.hasNext()) false; |
14 | callF(f, it.next()); |
15 | true; |
16 | } |
17 | }; |
18 | } |
download show line numbers debug dex old transpilations
Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt
No comments. add comment
| Snippet ID: | #1018344 |
| Snippet name: | steppable_forEach |
| Eternal ID of this version: | #1018344/8 |
| Text MD5: | 8f6950432d95e876bac7ed428f1ec1fe |
| Transpilation MD5: | 4d4242411e6d9a9291f02e0653418be6 |
| Author: | stefan |
| Category: | javax |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2019-11-25 19:52:04 |
| Source code size: | 499 bytes / 18 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 709 / 831 |
| Version history: | 7 change(s) |
| Referenced in: | [show references] |