Skip to content

Instantly share code, notes, and snippets.

Created October 10, 2017 18:33
Show Gist options
  • Save anonymous/b4185913e505f1eb21ed07eb3fb66229 to your computer and use it in GitHub Desktop.
Save anonymous/b4185913e505f1eb21ed07eb3fb66229 to your computer and use it in GitHub Desktop.
compound op with args
*decisionthreshold=0.86
<(&/,(^pick,{SELF},$1),(^pick,{SELF},$2)) <|> <(*,{myNewOp},$1,$2) --> [called]>>.
<(*,{myNewOp},a,b) --> [called]>! :|:
Result:
IN SetDecisionThreshold(0.86)
IN <(&/,(^pick,{SELF},$1),(^pick,{SELF},$2)) <|> <(*,{myNewOp},$1,$2) --> [called]>>. %1.00;0.90%
IN <(*,{myNewOp},a,b) --> [called]>! :-4: %1.00;0.90%
EXE $0.15;0.02;0.86$ ^pick([{SELF}, a])=null
EXE $0.09;0.00;0.14$ ^pick([{SELF}, b])=null
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment