Defining window.allwindows in terms of mapcat.