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

11
LINES

< > BotCompany Repo | #1004623 // quickPhoneEval

JavaX fragment (include)

// returns safeUnstructure()'d result
// code can be an expression or a list of statements
static O quickPhoneEval(S code) {
  // Code to run on the phone spontaneously
  S src = evalJava_prep(code, "_calc");
  S answer = quickRunOnPhone(src);
  if (!swic(answer, "ok "))
    fail(print(unquote(answer)));
  
  ret safeUnstructure(answer.substring(3));
}

Author comment

Began life as a copy of #1004622

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1004623
Snippet name: quickPhoneEval
Eternal ID of this version: #1004623/1
Text MD5: 115e2aef37c2cc158184e1e80aab13a1
Author: stefan
Category: javax / super cool stuff!
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2016-12-13 02:02:27
Source code size: 364 bytes / 11 lines
Pitched / IR pitched: No / No
Views / Downloads: 511 / 465
Referenced in: [show references]