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

7
LINES

< > BotCompany Repo | #1028026 // emitIntermediate - mechanism for optional out parameters

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

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

// optional parameter can be a Var or IVF1
static <A> A mapMethodLike emitIntermediate(S name, O[] _, A a) {
  O receiver = optPar(_, name);
  callOpt(receiver, 'set, a);
  callOpt(receiver, 'get, a);
  ret a;
}

download  show line numbers  debug dex  old transpilations   

Travelled to 7 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt, xrpafgyirdlv

No comments. add comment

Snippet ID: #1028026
Snippet name: emitIntermediate - mechanism for optional out parameters
Eternal ID of this version: #1028026/4
Text MD5: 31ae39e899016394a20c350984abb995
Transpilation MD5: c5e6284e511f7d86faf030fc65792793
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2020-05-04 01:52:12
Source code size: 217 bytes / 7 lines
Pitched / IR pitched: No / No
Views / Downloads: 112 / 180
Version history: 3 change(s)
Referenced in: [show references]