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

5
LINES

< > BotCompany Repo | #1029976 // stringToStringListOpt

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

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

1  
static LS lambdaMapLike stringToStringListOpt(IF1<S, LS> f, O o) {
2  
  if (o cast S)
3  
    ret f.get(o);
4  
  ret (L) o;
5  
}

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1029976
Snippet name: stringToStringListOpt
Eternal ID of this version: #1029976/1
Text MD5: 29c9a30989fa4a8675bfff4e2f7f8be8
Transpilation MD5: 80f7ad4593d21da4057e5b1f83dea950
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2020-10-26 09:37:58
Source code size: 119 bytes / 5 lines
Pitched / IR pitched: No / No
Views / Downloads: 234 / 298
Referenced in: [show references]