Commits

Brian McKenna committed 04b21ed Merge

Merge pull request #156 from raimohanska/master

Documentation for the array accessor (@)

Comments (0)

Files changed (1)

docs/guide/types.rst

     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
 
 .. _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