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

3
LINES

< > BotCompany Repo | #1021031 // listL - length of list/collection (could also use l, but this one has less baggage)

JavaX fragment (include) [tags: use-pretranspiled]

Libraryless. Click here for Pure Java version (28L/1K/1K).

static int listL(Collection l) {
  ret l == null ? 0 : l.size();
}

Author comment

Began life as a copy of #1021030

download  show line numbers  debug dex  old transpilations   

Travelled to 8 computer(s): bhatertpkbcr, cfunsshuasjs, gwrvuhgaqvyk, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1021031
Snippet name: listL - length of list/collection (could also use l, but this one has less baggage)
Eternal ID of this version: #1021031/1
Text MD5: 13dcbe453008bfbe96ef4c4384ef007c
Transpilation MD5: 1b88b5f2ed42e526e4ed1adaaf17bb59
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-01-18 06:07:35
Source code size: 68 bytes / 3 lines
Pitched / IR pitched: No / No
Views / Downloads: 314 / 418
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)