ソースを参照

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

読み込み中…
キャンセル
保存