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

10
LINES

< > BotCompany Repo | #1004299 // gSat - satisfy a statement with variables in log

JavaX fragment (include)

static IterableIterator<SS> gSat(S statement) {
  final new L<S> vars;
  S pat = upperCaseVarsToStars(statement, vars);
  ret mapI(func(Matches m) {
    new SS map;
    for (int i = 0; i < l(m.m); i++)
      map.put(vars.get(i), m.unq(i));
    ret map;
  }, gJMatch(pat));
}

download  show line numbers  debug dex  old transpilations   

Travelled to 14 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, ddnzoavkxhuk, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1004299
Snippet name: gSat - satisfy a statement with variables in log
Eternal ID of this version: #1004299/1
Text MD5: 8a139c61633afd7d8b511b4b2230a55a
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2016-08-13 02:48:37
Source code size: 283 bytes / 10 lines
Pitched / IR pitched: No / No
Views / Downloads: 502 / 506
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)