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

11
LINES

< > BotCompany Repo | #1001516 // len (synonym of length)

JavaX fragment (include)

static int len(O[] array) {
  return array == null ? 0 : array.length;
}

static int len(L list) {
  return list == null ? 0 : list.size();
}

static int len(S s) {
  ret s == null ? 0 : s.length();
} 

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: #1001516
Snippet name: len (synonym of length)
Eternal ID of this version: #1001516/1
Text MD5: c391f9bfacf2ca40623f428019d1abcc
Author: stefan
Category:
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2015-10-21 19:46:25
Source code size: 211 bytes / 11 lines
Pitched / IR pitched: No / Yes
Views / Downloads: 627 / 1207
Referenced in: #1001518 - l function (synonym of length), length of arrays, strings, lists, size of maps
#1002427 - Accellerating 629 (SPIKE)
#1006654 - Standard functions list 2 (LIVE, continuation of #761)
#3000382 - Answer for ferdie (>> t = 1, f = 0)