D-lang problems (Dlang for searching)

I rewrite readf to:

auto N = readln.strip.to!int; // when number in whole line

or (NB: I used “strip” above, and “split” below)

auto Nums = readln.split.to!(int); // when list of numbers in 1 line

u can convert same way double-s too

for just string u can use (1D spreadsheet):

auto Strs = readln.split;

for converting between types u can use to!newType:

int N = str[5].to!int; // string str and converting element

for a=“$123” u can use:

int cellRef = a[1…$].to!int; // [1…$] means from 1(included) to post last element (excluded)

etc