2016 Update

This commit is contained in:
Tina Müller 2016-12-05 22:15:40 +01:00
parent 948b86eafa
commit dcf5d15da3
7965 changed files with 139854 additions and 31002 deletions

View file

@ -14,7 +14,7 @@ immutable texts = [
"exactly 1 of statements 7, 8 and 9 are true",
"exactly 4 of the preceding statements are true"];
immutable pure @safe /*@nogc*/ bool function(in bool[])[12] predicates = [
immutable pure @safe @nogc bool function(in bool[])[12] predicates = [
s => s.length == 12,
s => s[$ - 6 .. $].sum == 3,
s => s.dropOne.stride(2).sum == 2,
@ -28,7 +28,7 @@ immutable pure @safe /*@nogc*/ bool function(in bool[])[12] predicates = [
s => s[6 .. 9].sum == 1,
s => s[0 .. 11].sum == 4];
void main() {
void main() @safe {
enum nStats = predicates.length;
foreach (immutable n; 0 .. 2 ^^ nStats) {