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

11
LINES

< > BotCompany Repo | #1001418 // length

JavaX fragment (include)

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

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

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

download  show line numbers  debug dex  old transpilations   

Travelled to 14 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt, xrpafgyirdlv

No comments. add comment

Snippet ID: #1001418
Snippet name: length
Eternal ID of this version: #1001418/1
Text MD5: 6f7ce2eea3b4f880c860706f64e1b164
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2015-10-21 19:45:54
Source code size: 219 bytes / 11 lines
Pitched / IR pitched: No / Yes
Views / Downloads: 819 / 1686
Referenced in: [show references]