Created
April 28, 2012 23:29
-
-
Save jscn/2522611 to your computer and use it in GitHub Desktop.
Installing Io
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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