README.md in hamster-matrix-0.9.5 vs README.md in hamster-matrix-1.0.0
- old
+ new
@@ -23,10 +23,23 @@
$ gem install hamster-matrix
## Usage
-###Coming Soon!###
+```ruby
+require 'hamster-matrix'
+a = Hamster::Matrix[[1,0,0],[0,1,0],[0,0,1]]
+b = a.set(2,2,'foo')
+puts b
+# [[1, 0, 0]
+# [0, 1, 0]
+# [0, 0, "foo"]]
+
+puts a
+#[[1, 0, 0]
+# [0, 1, 0]
+# [0, 0, 1]]
+```
## Contributing
Bug reports and pull requests are welcome on GitHub at https://github.com/bradurani/hamster-matrix. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](contributor-covenant.org) code of conduct.