Transpiled version (9944L) is out of date.
1 | static <A> L<Int> lambdaMapLike indicesOfPred(IPred<A> f, L<A> l) { |
2 | if (l == null) null; |
3 | |
4 | new L<Int> x; |
5 | int n = l(l); |
6 | for i to n: |
7 | if (f.get(l.get(i))) |
8 | x.add(i); |
9 | ret x; |
10 | } |
11 | |
12 | static <A> L<Int> indicesOfPred(L<A> l, IPred<A> f) { |
13 | ret indicesOfPred(f, l); |
14 | } |
Began life as a copy of #1025514
download show line numbers debug dex old transpilations
Travelled to 8 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt, wnsclhtenguj, xrpafgyirdlv
No comments. add comment
Snippet ID: | #1027958 |
Snippet name: | indicesOfPred |
Eternal ID of this version: | #1027958/9 |
Text MD5: | 535ff71ae4a5b825de922abf1dbf19ec |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2023-01-16 15:39:08 |
Source code size: | 284 bytes / 14 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 205 / 323 |
Version history: | 8 change(s) |
Referenced in: | [show references] |