Transpiled version (2743L) is out of date.
1 | static <A> L<A> lambdaMapLike mapDoubleArrayToList(IF1<Double, A> f, double[] l) {
|
2 | L out = emptyList(l(l)); |
3 | if (empty(l)) ret out; |
4 | int n = l.length; |
5 | for i to n: |
6 | out.add(f.get(l[i]); |
7 | ret out; |
8 | } |
9 | |
10 | static <A> L<A> lambdaMapLike mapDoubleArrayToList(double[] l, IF1<Double, A> f) {
|
11 | ret mapDoubleArrayToList(f, l); |
12 | } |
Began life as a copy of #1027893
download show line numbers debug dex old transpilations
Travelled to 4 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, vouqrxazstgt
No comments. add comment
| Snippet ID: | #1031232 |
| Snippet name: | mapDoubleArrayToList - map over double array (to list) |
| Eternal ID of this version: | #1031232/4 |
| Text MD5: | e82f0b4b8ba647e48c85e3227866392d |
| Author: | stefan |
| Category: | javax |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2021-05-23 19:55:32 |
| Source code size: | 337 bytes / 12 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 327 / 458 |
| Version history: | 3 change(s) |
| Referenced in: | [show references] |