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

4
LINES

< > BotCompany Repo | #1031161 // firstOfArrayOrSame

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

Transpiled version (2728L) is out of date.

sO firstOfArrayOrSame(O o) {
  if (o cast O[]) ret first(o);
  ret o;
}

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1031161
Snippet name: firstOfArrayOrSame
Eternal ID of this version: #1031161/2
Text MD5: 7b252de24abbd5701a9e4ab1591c5fd5
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2021-05-14 16:42:09
Source code size: 74 bytes / 4 lines
Pitched / IR pitched: No / No
Views / Downloads: 149 / 233
Version history: 1 change(s)
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)