Skip to content

Instantly share code, notes, and snippets.

@jscn
Created April 28, 2012 23:29
Show Gist options
  • Save jscn/2522611 to your computer and use it in GitHub Desktop.
Save jscn/2522611 to your computer and use it in GitHub Desktop.
Installing Io
wget http://iobin.suspended-chord.info/linux/iobin-linux-x86-deb-current.zip
unzip iobin-linux-x86-deb-current.zip
sudo dpkg -i IoLanguage-2012.03.02-Linux-x86.deb
Io> foo := Map clone
==> Map_0xa046dd8:
Io> foo atPut("bar", "baz")
==> Map_0xa046dd8:
Io> foo atPut("something", "else")
==> Map_0xa046dd8:
Io> foo asList
==> list(list(something, else), list(bar, baz))
Io> foo asObject
==> Object_0xa01c1e8:
bar = "baz"
something = "else"
Io> Singleton := Object clone
==> Singleton_0xaac9f60:
type = "Singleton"
Io> Singleton clone := Singleton
==> Singleton_0xaac9f60:
clone = Singleton_0xaac9f60
type = "Singleton"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment