Branch: Tag:

2016-12-07

2016-12-07 22:46:18 by Martin Nilsson <nilsson@fastmail.com>

This is a cooler way of iterating over a sorted mapping.

531:    if( s )    write( "%s\n", s );    -  foreach(sort(indices(opts)), string i) +  foreach(sort((array)opts), [string i, Opt opt])    { -  Opt opt = opts[i]; +     string opts = opt->get_opts()*", ";    s = index(i+"_help");    if ((sizeof(opts) > 23) || !s) {