Libraryless. Click here for Pure Java version (2513L/16K).
1 | static <A> A foldr_noSeed(F2<A, A, A> f, Cl<A> l) { |
2 | ret foldr_noSeed((O) f, l); |
3 | } |
4 | |
5 | static <A> A curry1Like foldr_noSeed(IF2<A, A, A> f, Cl<A> l) { |
6 | ret foldr_noSeed((O) f, l); |
7 | } |
8 | |
9 | static <A> A foldr_noSeed(O f, Cl<A> l) { |
10 | Iterator<A> it = reversedIterator(asList(l)); |
11 | if (!it.hasNext()) null; |
12 | A a = it.next(); |
13 | while (it.hasNext()) |
14 | a = (A) callF(f, it.next(), a); |
15 | ret a; |
16 | } |
Began life as a copy of #1017064
download show line numbers debug dex old transpilations
Travelled to 7 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt, xrpafgyirdlv
No comments. add comment
Snippet ID: | #1027923 |
Snippet name: | foldr_noSeed |
Eternal ID of this version: | #1027923/4 |
Text MD5: | 14eda53db80316305ca3bee3b39b7e1d |
Transpilation MD5: | 7ed087ca3e1d69652ddc138bf84a652b |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2020-07-11 21:35:28 |
Source code size: | 402 bytes / 16 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 203 / 288 |
Version history: | 3 change(s) |
Referenced in: | [show references] |