瀏覽代碼

Update map.c

develop-theo
Sebeck10 2 年之前
父節點
當前提交
8ac6023ee0
共有 1 個檔案被更改,包括 3 行新增6 行删除
  1. +3
    -6
      tests-parsimony/map.c

+ 3
- 6
tests-parsimony/map.c 查看文件

@ -1,16 +1,13 @@
enum foo { x, y, z };
@{
toChar(foo) {
"\""+foo+"\"";
}
square(foo) {
p2(foo) {
foo * foo;
}
c = ["earth", "sky", "water"];
}
@{print(map(square, [100, 2, 3]));}
@{print(map(toChar, c));}
@{print(map(p2, [100, 2, 3]));}
@{print(map(toChar, c));}

Loading…
取消
儲存