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

What do you get when you get the 0-index? Does x[0]=x[1]?


Just reading the comments here, x seems to always be a hashmap. It is implied that there's no fundamental array type in the language. So no, x[0] and x[1] do not refer to the same variable, although they certainly could compare the same depending on their specific values.




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

Search: