Libraryless. Click here for Pure Java version (3861L/22K).
1 | static double[] doubleMul(double[] l, double factor) {
|
2 | if (factor == 1) ret l; |
3 | int n = l(l); |
4 | double[] x = new[n]; |
5 | for i to n: |
6 | x[i] = l[i]*factor; |
7 | ret x; |
8 | } |
Began life as a copy of #1033034
download show line numbers debug dex old transpilations
Travelled to 3 computer(s): bhatertpkbcr, mowyntqkapby, mqqgnosmbjvj
No comments. add comment
| Snippet ID: | #1033042 |
| Snippet name: | doubleMul |
| Eternal ID of this version: | #1033042/1 |
| Text MD5: | 433279f450192412af76370f6f072c5e |
| Transpilation MD5: | 7f4aed78e13becef373bc18ed7ae2e80 |
| Author: | stefan |
| Category: | javax |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2021-10-11 17:29:32 |
| Source code size: | 175 bytes / 8 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 463 / 538 |
| Referenced in: | [show references] |