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

7
LINES

< > BotCompany Repo | #1030502 // fourth - get fourth element from a list

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

Libraryless. Click here for Pure Java version (2713L/16K).

static <A> A fourth(L<A> l) {
  return _get(l, 3);
}

static <A> A fourth(A[] bla) {
  ret bla == null || bla.length <= 3 ? null : bla[3];
}

Author comment

Began life as a copy of #1006330

download  show line numbers  debug dex  old transpilations   

Travelled to 4 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, vouqrxazstgt

No comments. add comment

Snippet ID: #1030502
Snippet name: fourth - get fourth element from a list
Eternal ID of this version: #1030502/1
Text MD5: ccdba2687772e01e90cff4183b14e796
Transpilation MD5: 58e2d52c95bd58166aefc216294a36d3
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2021-01-02 06:34:18
Source code size: 146 bytes / 7 lines
Pitched / IR pitched: No / No
Views / Downloads: 162 / 234
Referenced in: [show references]