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

6
LINES

< > BotCompany Repo | #1002824 // snlIsVar

JavaX fragment (include)

static boolean snlIsVar(Lisp l) {
  if (l == null || !l.isLeaf()) ret false;
  S h = l.head;
  ret startsWithUpperCase(h)
    || (l(h) > 1 && h.startsWith("$"));
}

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: #1002824
Snippet name: snlIsVar
Eternal ID of this version: #1002824/1
Text MD5: 19c50721d7509bf99fb927dd4d70e856
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2016-03-02 17:42:01
Source code size: 168 bytes / 6 lines
Pitched / IR pitched: No / No
Views / Downloads: 578 / 768
Referenced in: #1002843 - nlIsVar
#1006654 - Standard functions list 2 (LIVE, continuation of #761)
#3000382 - Answer for ferdie (>> t = 1, f = 0)
#3000383 - Answer for funkoverflow (>> t=1, f=0 okay)