Explorar el Código

Update map.c

develop-theo
Sebeck10 hace 2 años
padre
commit
8ac6023ee0
Se han modificado 1 ficheros con 3 adiciones y 6 borrados
  1. +3
    -6
      tests-parsimony/map.c

+ 3
- 6
tests-parsimony/map.c Ver fichero

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

Cargando…
Cancelar
Guardar