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

13
LINES

< > BotCompany Repo | #1023190 // ai_spaceToSpace

JavaX fragment (include)

static LS ai_spaceToSpace(S space1, S space2, Collection<S> inputs, O... _) {
  ret map(s -> ai_spaceToSpace(space1, space2, s, _), inputs);
}

sS ai_spaceToSpace(S space1, S space2, S input, O... _) {
  S userName = optPar userName(_, 'usery);
  S computerName = optPar computerName(_, 'computery);
  if (eq(space1, 'user) && eq(space2, 'objective))
    ret switcheroo_youToName(computerName, switcheroo_iToName(userName, input));
  if (eq(space1, 'objective) && eq(space2, 'computer))
      ret switcheroo_nameToYou(userName, switcheroo_nameToI(computerName, input));
    ret input;
}

download  show line numbers  debug dex  old transpilations   

Travelled to 7 computer(s): bhatertpkbcr, cfunsshuasjs, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1023190
Snippet name: ai_spaceToSpace
Eternal ID of this version: #1023190/2
Text MD5: 3f4568e10e1114b9e99b324e005bd1d2
Author: stefan
Category: javax / a.i.
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-05-16 02:45:24
Source code size: 598 bytes / 13 lines
Pitched / IR pitched: No / No
Views / Downloads: 297 / 341
Version history: 1 change(s)
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)
#1023200 - ai_spaceToSpace_es
#1023251 - ai_userSpaceToObjective