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

20
LINES

< > BotCompany Repo | #1010419 // quickSolveToFunction - hotwire solver and produce function

JavaX fragment (include)

1  
// returns null if case not solved
2  
static F1 quickSolveToFunction(S... ioioi) {
3  
  O solver = defaultSolver();
4  
  lock defaultSolver_lock;
5  
  fO case = call(solver, "quickSolve", (O) ioioi);
6  
  if (!isTrue(call(case, 'solved))) null;
7  
  ret new F1 {
8  
    O get(O in)  {
9  
      ret call(case, 'processIn, in);
10  
    }
11  
  };
12  
}
13  
14  
static F1 quickSolveToFunction(SS ioioi) {
15  
  ret quickSolveToFunction(mapToStringArray(ioioi));
16  
}
17  
18  
static F1 quickSolveToFunction(L<S> ioioi) {
19  
  ret quickSolveToFunction(toStringArray(ioioi));
20  
}

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: #1010419
Snippet name: quickSolveToFunction - hotwire solver and produce function
Eternal ID of this version: #1010419/4
Text MD5: b31275a694b056d13505bdb2f97119d9
Author: stefan
Category: javax / a.i.
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2017-09-17 18:06:56
Source code size: 530 bytes / 20 lines
Pitched / IR pitched: No / No
Views / Downloads: 483 / 504
Version history: 3 change(s)
Referenced in: [show references]