Skip to content

Instantly share code, notes, and snippets.

@robi42
Created October 2, 2011 01:12
Show Gist options
  • Save robi42/1256910 to your computer and use it in GitHub Desktop.
Save robi42/1256910 to your computer and use it in GitHub Desktop.
$ ringo
>> list = new ScriptableList(new java.util.HashSet(["foo", "bar", "bar"]))
[java.util.ArrayList [foo, bar]]
>> list[0]
'foo'
>> list.pop()
'bar'
>> map = new ScriptableMap(new java.util.HashMap({foo: 'bar'}))
{ foo: 'bar' }
>> map.foo
'bar'
>> map.foo = 'baz'
'baz'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment