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

3
LINES

< > BotCompany Repo | #1008176 // lispSingleChildOrFull - return single child (if exists) or full expression

JavaX fragment (include)

static Lisp lispSingleChildOrFull(Lisp l) {
  ret l != null && l.size() == 1 ? l.get(0) : l;
}

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1008176
Snippet name: lispSingleChildOrFull - return single child (if exists) or full expression
Eternal ID of this version: #1008176/1
Text MD5: 0529ac37422aa8c14ce5c16e5f34bfd2
Author: stefan
Category: javax / a.i.
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2017-04-29 17:50:24
Source code size: 96 bytes / 3 lines
Pitched / IR pitched: No / No
Views / Downloads: 368 / 381
Referenced in: [show references]