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

8
LINES

< > BotCompany Repo | #1012754 // matchSomethingWhichIs

JavaX fragment (include)

static bool matchSomethingWhichIs(O pat, O real, IMatchF elementMatcher, Map map) {
  if (pat << SomethingWhichIs && real instanceof S) {
    if (!ai_is(quote((S) real), pat/SomethingWhichIs.type)) false;
    print("Assigning " + pat + " => " + real);
    ret strictPut(map, pat, real);
  }  
  false;
}

Author comment

Began life as a copy of #1012752

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: #1012754
Snippet name: matchSomethingWhichIs
Eternal ID of this version: #1012754/2
Text MD5: 564bf365bd04908a6782e8c6da86ebd9
Author: stefan
Category: javax / a.i.
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2017-12-11 20:07:19
Source code size: 310 bytes / 8 lines
Pitched / IR pitched: No / No
Views / Downloads: 379 / 400
Version history: 1 change(s)
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)