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

7
LINES

< > BotCompany Repo | #1016127 // dm_getStem - now also takes a service ID

JavaX fragment (include)

static O dm_getStem(O moduleOrID) {
  if (isString(moduleOrID) && isIdentifier(moduleOrID/S))
    moduleOrID = dm_getService(moduleOrID/S);
  if (isStringOrIntOrLong(moduleOrID))
    ret dm_getStemByID(moduleOrID);
  ret or(getOpt(dm_getModule(moduleOrID), '_host), moduleOrID);
}

Author comment

Began life as a copy of #1016126

download  show line numbers  debug dex  old transpilations   

Travelled to 18 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, dpqxeycirhfy, ekrmjmnbrukm, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt, whxojlpjdney, xrpafgyirdlv

No comments. add comment

Snippet ID: #1016127
Snippet name: dm_getStem - now also takes a service ID
Eternal ID of this version: #1016127/7
Text MD5: 8ac71704578fd15ba5014f3dc08f8787
Author: stefan
Category: javax / dynamic modules
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2020-02-28 14:48:25
Source code size: 286 bytes / 7 lines
Pitched / IR pitched: No / No
Views / Downloads: 532 / 596
Version history: 6 change(s)
Referenced in: [show references]