Permalink
Browse files

document array accessor

  • Loading branch information...
1 parent 4677612 commit 56e06dc06d5a99c289b4c1cfcf2b70d26f95888f @raimohanska raimohanska committed Nov 26, 2012
Showing with 6 additions and 0 deletions.
  1. +6 −0 docs/guide/types.rst
View
@@ -84,6 +84,11 @@ error::
roy> [1, true, 3]
Error: Type error: Number is not Boolean
+Access array elements with the ``@`` operator::
+
+ roy> [1,2,3] @ 1
+ 2 : Number
+
.. _objects:
Objects
@@ -175,3 +180,4 @@ If you want, you can try and shorten up RegExp construction::
.. _Curry-Howard isomorphism: http://en.wikipedia.org/wiki/Curry-Howard_correspondence
.. _structural subtyping: http://en.wikipedia.org/wiki/Structural_type_system
+Access array elements with the @ operator

0 comments on commit 56e06dc

Please sign in to comment.