Browse Source

Update map.c

develop-theo
Sebeck10 2 years ago
parent
commit
219ab49a7e
1 changed files with 13 additions and 5 deletions
  1. +13
    -5
      tests-parsimony/map.c

+ 13
- 5
tests-parsimony/map.c View File

@ -10,11 +10,18 @@
c = ["earth", "sky", "water"];
isSky(x) { x == "sky" }
c = reject(isSky, c);
nil;
}
@{print(map(p2, [100, 2, 3]));}
@{
print(map(p2, [100, 2, 3]));
nil;
}
@{print(map(toChar, c));}
@{
print(map(toChar, c));
nil;
}
enum foo { A, B, C };
enum oof { A, B, C };
@ -28,13 +35,14 @@ enum oof { A, B, C };
a = map(to_C_string, select(isEnum, properties.enums.foo.enumList));
b = map(to_C_string, properties.enums.foo.enumList, notToken);
c = map(to_C_string, properties.enums.foo.enumList, isEnum);
nil;
}
char *a[] = { @(a) };
char *a[] = { @a };
char *b[] = { @(b) };
char *b[] = { @b };
char *c[] = { @(c) };
char *c[] = { @c };

Loading…
Cancel
Save