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

13
LINES

< > BotCompany Repo | #1016143 // getEmits - now silences emits

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

Libraryless. Click here for Pure Java version (2165L/14K).

please include function emit.

static L getEmits(Runnable r) {
  new L l;
  temp tempSetThreadLocal(emit_tl, l);
  temp tempSetMCOpt(emit_print := false);
  callF(r);
  ret l;
}

static L mapLike getEmits(O f, O... args) {
  ret getEmits(r { callF(f, args) });
}

download  show line numbers  debug dex  old transpilations   

Travelled to 14 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1016143
Snippet name: getEmits - now silences emits
Eternal ID of this version: #1016143/9
Text MD5: 6844033a01e5b0c4155f15faec6e0fe9
Transpilation MD5: 2ed826b7e6c8d1d7a747290010bdc53c
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-07-01 01:45:27
Source code size: 274 bytes / 13 lines
Pitched / IR pitched: No / No
Views / Downloads: 459 / 616
Version history: 8 change(s)
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)
#1017498 - pnlEmits
#1018028 - emittedFacts
#1021011 - firstStringEmit
#1023759 - Transpilation Bug Test (OK)
#1026492 - getEmits_tee - also prints emits as usual