Hacker Newsnew | comments | ask | jobs | submitlogin
shiro 1589 days ago | link | parent

> 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?



pg 1589 days ago | link

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

-----




Lists | RSS | Bookmarklet | Guidelines | FAQ | News News | Feature Requests | Y Combinator | Apply | Library

Search: