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

22
LINES

< > BotCompany Repo | #1035479 // test_leftArrowScript_antiComma - opposite of the comma connector

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

Uses 679K of libraries. Click here for Pure Java version (33063L/164K).

!include once #1034831 // Gazelle 22 Function Include for Testing

scope test_leftArrowScript_antiComma

svoid test_leftArrowScript_antiComma() {
  new TestFunctionValues<S, O>(l1 leftArrowVerbose)
    // basic use: ll < plus 1 2 = ll (plus 1 2)
    .io([[ ll < plus 1 2 ]], ll(3))
    
    // comma binds weaker on the right of an anti-comma
    .io([[ ll < ll 5 6, size ]], ll(2))
    
    // not decided yet if it does the same on the LHS
    //.io([[ l, ll < 5 ]], ll(-3))
    
    // "new" combined with "<" (the anti-comma)
    .io([[ v <- new Var < new Pair
           v get ]], pair(null, null))
    
    .run();
  
}

Author comment

Began life as a copy of #1035254

download  show line numbers  debug dex  old transpilations   

Travelled to 4 computer(s): ekrmjmnbrukm, elmgxqgtpvxh, mowyntqkapby, mqqgnosmbjvj

No comments. add comment

Snippet ID: #1035479
Snippet name: test_leftArrowScript_antiComma - opposite of the comma connector
Eternal ID of this version: #1035479/7
Text MD5: 4386499ad24ea38773ecec9b0af42cc0
Transpilation MD5: f83254d7a5129bee5f08329ff86dd339
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2022-06-02 08:47:17
Source code size: 646 bytes / 22 lines
Pitched / IR pitched: No / No
Views / Downloads: 76 / 144
Version history: 6 change(s)
Referenced in: [show references]