MATCH-VARS: ?a ?b ;
-{ f } [ { ?a ?a } { 1 2 } match ] unit-test
+[ f ] [ { ?a ?a } { 1 2 } match ] unit-test
-{ H{ { ?a 1 } { ?b 2 } } } [
+[ H{ { ?a 1 } { ?b 2 } } ] [
{ ?a ?b } { 1 2 } match
] unit-test
-{ { 1 2 } } [
+[ { 1 2 } ] [
{ 1 2 }
{
{ { ?a ?b } [ ?a ?b 2array ] }
} match-cond
] unit-test
-{ t } [
+[ t ] [
{ 1 2 }
{
{ { 1 2 } [ t ] }
} match-cond
] unit-test
-{ t } [
+[ t ] [
{ 1 3 }
{
{ { 1 2 } [ t ] }
} match-cond
] unit-test
-{ f } [
+[ f ] [
{ 1 5 }
{
{ { 1 2 } [ t ] }
\ ?a \ ?a match
] unit-test
-{ "match" } [
+[ "match" ] [
"abcd" {
{ ?a [ "match" ] }
} match-cond
TUPLE: match-replace-test a b ;
-{
+[
T{ match-replace-test f 2 1 }
-} [
+] [
T{ match-replace-test f 1 2 }
T{ match-replace-test f ?a ?b }
T{ match-replace-test f ?b ?a }