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

3
LINES

< > BotCompany Repo | #1028150 // revChainPlusIfNempty

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

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

static ReverseChain<S> revChainPlusIfNempty(ReverseChain<S> l, S s) {
  ret empty(s) ? l : revChainPlus(l, s);
}

Author comment

Began life as a copy of #1007669

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: #1028150
Snippet name: revChainPlusIfNempty
Eternal ID of this version: #1028150/1
Text MD5: 28da4e69b199ff1b48599ca19c18a342
Transpilation MD5: d1218a02a537acfd38648fab4711bcc2
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2020-05-23 16:53:14
Source code size: 114 bytes / 3 lines
Pitched / IR pitched: No / No
Views / Downloads: 219 / 288
Referenced in: [show references]