@@ -5,8 +5,22 @@ public import std.stdio; public import std.string; public import std.typecons; import std.c.stdlib; + +// To avoide the following ICE: +// src\phobos\std\algorithm.d(4552): +// Error: function std.algorithm.count!("a == b",string,char).count +// compiler error, parameter 'value', bugzilla 2962? +// Assertion failure: '0' on line 717 in file 'glue.c' +int count(T,V)(T[] a, V v) +{ + int cnt = 0; + foreach(e; a) + if(e == v) + ++cnt; + return cnt; +} void application_exit() { std.c.stdlib.exit(0);