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).

1  
static <A> A fourth(L<A> l) {
2  
  return _get(l, 3);
3  
}
4  
5  
static <A> A fourth(A[] bla) {
6  
  ret bla == null || bla.length <= 3 ? null : bla[3];
7  
}

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: 163 / 235
Referenced in: [show references]