Forum Navigation
Tango.core.Array.find with additional start parameter
Moderators:
larsivi
Posted: 09/27/07 16:12:40 Modified: 09/27/07 16:13:14Hi,
I like to ask if it makes sense to ask for an additional start parameter for Array.core.find. Instead of:
pos = start + find(str[start..$], (char c){ return c == 'x'});we could write:
pos = find(str,(char c){ return c == 'x'}, start);It looks cleaner to do it this way. Less like a workaround. A default parameter (.., uint start = 0) also wouldn't break any code.
Worth a ticket, or was it already discussed?












