From 56e06dc06d5a99c289b4c1cfcf2b70d26f95888f Mon Sep 17 00:00:00 2001 From: Juha Paananen Date: Mon, 26 Nov 2012 22:52:14 +0200 Subject: [PATCH] document array accessor --- docs/guide/types.rst | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/docs/guide/types.rst b/docs/guide/types.rst index b263024..5089916 100644 --- a/docs/guide/types.rst +++ b/docs/guide/types.rst @@ -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