I noticed that maximum(i for i = 1:10) works but argmax(i for i=1:10) does not. Any reason for the inconsistency?
Right now, I work around this by writing argmax([i for i=1:10]), but I think supporting the generator syntax is desirable to avoid a temporary array. Thanks!