Browse Source

Update map.c

develop-theo
Sebeck10 2 years ago
parent
commit
8ac6023ee0
1 changed files with 3 additions and 6 deletions
  1. +3
    -6
      tests-parsimony/map.c

+ 3
- 6
tests-parsimony/map.c View File

@ -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…
Cancel
Save