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

10
LINES

< > BotCompany Repo | #1012027 // ai_getWebFromTerm - accepts "<id>" and "Web <id>"

JavaX fragment (include)

static Web ai_getWebFromTerm(S s) {
  if (possibleGlobalID(s)) {
    Web web = ai_getWeb(s);
    if (web != null) ret web;
  }
  new Matches m;
  if (swic(s, "Web ", m))
    ret ai_getWeb(m.rest());
  null;
}

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: #1012027
Snippet name: ai_getWebFromTerm - accepts "<id>" and "Web <id>"
Eternal ID of this version: #1012027/2
Text MD5: 7a37aa5b8bd46d6b9c30a3864f77fe7d
Author: stefan
Category: javax / a.i.
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2017-11-16 05:59:29
Source code size: 217 bytes / 10 lines
Pitched / IR pitched: No / No
Views / Downloads: 583 / 587
Version history: 1 change(s)
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)