upvote
Indeed. It's not very efficient though. If I remember correctly Scala does this.
reply