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

14
LINES

< > BotCompany Repo | #1028839 // test_ai_ruleOfThree_2 (OK)

JavaX fragment (include) [tags: use-pretranspiled]

Libraryless. Click here for Pure Java version (6573L/43K).

svoid test_ai_ruleOfThree_2() { 
  test_ai_ruleOfThree_2(lambda2 ai_ruleOfThree_solver_2);
}

svoid test_ai_ruleOfThree_2(IF2<S, S, S> f) {
  S db = [[
    If a HTTP request comes in, play a sound
    If a bell rings, open door
  ]];
  testFunctionValues_twoArgs(f,
    pair(db, "a HTTP request comes in"), "play a sound",
    pair(db, "a bell rings"), "open door",
    pair(db, "something else"), null);
}

Author comment

Began life as a copy of #1028826

download  show line numbers  debug dex  old transpilations   

Travelled to 7 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt, xrpafgyirdlv

No comments. add comment

Snippet ID: #1028839
Snippet name: test_ai_ruleOfThree_2 (OK)
Eternal ID of this version: #1028839/4
Text MD5: b2a60df94425ab31d029fbafeaa86a90
Transpilation MD5: 48e2737b353635c52eec18e4fbdb1293
Author: stefan
Category: javax / a.i.
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2020-07-09 15:46:00
Source code size: 419 bytes / 14 lines
Pitched / IR pitched: No / No
Views / Downloads: 226 / 295
Version history: 3 change(s)
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)
#1028904 - test_ai_ruleOfThree_3 (OK)