浏览代码

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));}

正在加载...
取消
保存