[racket] Suggestion: Allow above, beside etc. to accept a single image.
Currently *above* from 2htdp/image requires at least two arguments. I.e.
procedure
(above<file:///Applications/Racket%20v5.3.6/doc/teachpack/2htdpimage.html?q=define#%28def._%28%28lib._2htdp%2Fimage..rkt%29._above%29%29>
i1 i2 is ...) →
image?<file:///Applications/Racket%20v5.3.6/doc/teachpack/2htdpimage.html?q=define#%28def._%28%28lib._2htdp%2Fimage..rkt%29._image~3f%29%29>
Recently I have been using an idiom where I stack a list of one or more
images.
I.e.
(apply above list-of-images)
I have a workaround, but it seems to me that a more tolerant "above" --
which acts as an identity when passed a single image -- would be an
improvement to the
library.
Similarly for beside, etc.
Dan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.racket-lang.org/users/archive/attachments/20131021/8f4edf6c/attachment.html>