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)

1  
static O dm_getStem(O moduleOrID) {
2  
  if (isString(moduleOrID) && isIdentifier(moduleOrID/S))
3  
    moduleOrID = dm_getService(moduleOrID/S);
4  
  if (isStringOrIntOrLong(moduleOrID))
5  
    ret dm_getStemByID(moduleOrID);
6  
  ret or(getOpt(dm_getModule(moduleOrID), '_host), moduleOrID);
7  
}

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: 424 / 483
Version history: 6 change(s)
Referenced in: [show references]