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

11
LINES

< > BotCompany Repo | #1032677 // callOptString - callOpt, return only if string

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

Transpiled version (3846L) is out of date.

1  
sS callOptString(O o) {
2  
  ret optCast S(callF(o));
3  
}
4  
5  
sS callOptString(O o, S method, O... args) {
6  
  ret optCast S(callOpt(o, method, args));
7  
}
8  
9  
sS mapMethodLike callOptString(S method, O o) {
10  
  ret callOptString(o, method);
11  
}

Author comment

Began life as a copy of #1001199

download  show line numbers  debug dex  old transpilations   

Travelled to 4 computer(s): bhatertpkbcr, ekrmjmnbrukm, mowyntqkapby, mqqgnosmbjvj

No comments. add comment

Snippet ID: #1032677
Snippet name: callOptString - callOpt, return only if string
Eternal ID of this version: #1032677/6
Text MD5: b87bb22577cca36e7cc14c90834079a9
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2021-10-04 08:34:49
Source code size: 236 bytes / 11 lines
Pitched / IR pitched: No / No
Views / Downloads: 89 / 143
Version history: 5 change(s)
Referenced in: [show references]