Array is already defined
    H. S. Teoh 
    hsteoh at quickfur.ath.cx
       
    Fri Jan  5 16:02:24 UTC 2018
    
    
  
On Fri, Jan 05, 2018 at 03:56:30PM +0000, Vino via Digitalmars-d-learn wrote:
[...]
> Hi Jonathan,
> 
>  Sorry , not able to get you, can you please point our as to where we
>  need to added the braces in the below example.
Try this:
	void main () {
		Array!int Keycol;
		static foreach(i; 0 .. 3) {{
			typeof(read()[i]) Datacol;
			Datacol.insertBack(sort(read[i].dup[]).uniq);
			foreach(k; read[i]) {
				Keycol.insertBack(Datacol[].countUntil(k));
			}
		}}
		writeln (Datacol[], Keycol[]);
	}
T
-- 
Tech-savvy: euphemism for nerdy.
    
    
More information about the Digitalmars-d-learn
mailing list