Skip to content

Commit

Permalink
feat: add if
Browse files Browse the repository at this point in the history
  • Loading branch information
linsyking committed Apr 2, 2023
1 parent efcefd8 commit 2f7968a
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions examples/syn.meow
Original file line number Diff line number Diff line change
Expand Up @@ -58,3 +58,13 @@ eq(x,y) {
encode(y) = "T";
encode(x)
}

if(c,x,y) {
var cc = c + "$";
var enc = {
"T$" = encode(x);
"F$" = encode(y);
cc
};
decode(enc)
}

0 comments on commit 2f7968a

Please sign in to comment.