1 | static bool allSame(float[] l) { |
2 | if (empty(l)) true; |
3 | float f = l[0]; |
4 | for (int i = 1; i < l(l); i++) |
5 | if (l[i] != f) false; |
6 | true; |
7 | } |
download show line numbers debug dex old transpilations
Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1006788 |
Snippet name: | allSame |
Eternal ID of this version: | #1006788/1 |
Text MD5: | 61b065e9922bfe782b5e3548019f751a |
Author: | stefan |
Category: | javax / maths |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2017-02-04 04:42:54 |
Source code size: | 147 bytes / 7 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 472 / 492 |
Referenced in: | [show references] |