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

3
LINES

< > BotCompany Repo | #1031009 // debugProducer

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

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

static <A> Producer<A> debugProducer(Producer<A> p) {
  ret p == null ?: () -> print("Producer returned", p.next());
}

Author comment

Began life as a copy of #1026364

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1031009
Snippet name: debugProducer
Eternal ID of this version: #1031009/1
Text MD5: b07619a2e5287069a3f288cdbf40c584
Transpilation MD5: eb751bbfcfe8e8f8daff42d60f57bb9c
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2021-04-19 17:58:11
Source code size: 120 bytes / 3 lines
Pitched / IR pitched: No / No
Views / Downloads: 95 / 157
Referenced in: [show references]