Skip to content

Instantly share code, notes, and snippets.

@tarcieri
Last active August 29, 2015 14:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tarcieri/484d4843e355303cf730 to your computer and use it in GitHub Desktop.
Save tarcieri/484d4843e355303cf730 to your computer and use it in GitHub Desktop.
irust 1.2.0
$ gem install irust
Successfully installed irust-1.2.0
Parsing documentation for irust-1.2.0
Done installing documentation for irust after 0 seconds
1 gem installed
$ irust
Using rustc 1.0.0-nightly (083b8a404 2015-04-05) (built 2015-04-04)
irust> let mut nums = [1,2,3,4,5,6];
()
irust> nums
[1, 2, 3, 4, 5, 6]
irust> nums.reverse()
()
irust> nums
[6, 5, 4, 3, 2, 1]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment