Skip to content

Commit

Permalink
document array accessor
Browse files Browse the repository at this point in the history
  • Loading branch information
raimohanska committed Nov 26, 2012
1 parent 4677612 commit 56e06dc
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions docs/guide/types.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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.