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

13
LINES

< > BotCompany Repo | #1023190 // ai_spaceToSpace

JavaX fragment (include)

1  
static LS ai_spaceToSpace(S space1, S space2, Collection<S> inputs, O... _) {
2  
  ret map(s -> ai_spaceToSpace(space1, space2, s, _), inputs);
3  
}
4  
5  
sS ai_spaceToSpace(S space1, S space2, S input, O... _) {
6  
  S userName = optPar userName(_, 'usery);
7  
  S computerName = optPar computerName(_, 'computery);
8  
  if (eq(space1, 'user) && eq(space2, 'objective))
9  
    ret switcheroo_youToName(computerName, switcheroo_iToName(userName, input));
10  
  if (eq(space1, 'objective) && eq(space2, 'computer))
11  
      ret switcheroo_nameToYou(userName, switcheroo_nameToI(computerName, input));
12  
    ret input;
13  
}

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: 298 / 342
Version history: 1 change(s)
Referenced in: [show references]