Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

7
LINES

< > BotCompany Repo | #1006788 // allSame

JavaX fragment (include)

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: 471 / 491
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)