static bool allSame(float[] l) { if (empty(l)) true; float f = l[0]; for (int i = 1; i < l(l); i++) if (l[i] != f) false; true; }
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: | 470 / 490 |
Referenced in: | [show references] |