Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

> constant when called as a function simply returns itself.

I thought a sequence at a procedure position acted like aref, e.g. ("abc" 1) => #\b, right? So the automatic promotion of constant to constant-function occurs only for non-aggregate types?



Right. (It was a revealing slip. I've already started thinking of indexable stuff as like functions.)




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: