Suppose I have an array of file names, generated from some external program. Is there an zsh-idiomatic way of filtering this array to only keep directories? I suppose I am looking for something on the line of ${(M)files:#}, but I can't figure out how to do it.