arohner / scriptjure

a Clojure library for generating javascript
187 stars 15 forks source link

Couldn't figure out how to get information out of an array. #1

Closed JonathanSmith closed 14 years ago

JonathanSmith commented 14 years ago

So I created a method called aget! and added it to the special-forms, and then made it emit like this:

http://gist.github.com/303740

It seems to work so far!

I am not sure if aget or aget! is a better syntax, but the general idea might be considered for future inclusion.

arohner commented 14 years ago

Thanks for the patch! I changed the name to aget.