On Sat, Jan 24, 2015 at 08:49:01PM +0000, Dominikus Dittes Scherkl via Digitalmars-d-learn wrote: > Maybe I'm just too stupid, but I cannot manage to call a simple function > with all 256 possible values of ubyte with iote: > > int foo(ubyte c); > > auto myRange = iota(0,256).map!foo; [...]
Try: auto myRange = iota(0, 256).map!(a => foo(cast(ubyte)a)); T -- Shin: (n.) A device for finding furniture in the dark.