WWW-www.enlightenment.org pushed a commit to branch master.

http://git.enlightenment.org/website/www-content.git/commit/?id=82329b71f8f7040380ebf12265bc51f73b88317a

commit 82329b71f8f7040380ebf12265bc51f73b88317a
Author: Lauro Moura <lauromo...@expertisesolutions.com.br>
Date:   Mon Nov 30 12:01:27 2015 -0800

    Wiki page containers changed with summary [] by Lauro Moura
---
 pages/api/javascript/eina/containers.txt | 25 ++++++++++++++++++++++---
 1 file changed, 22 insertions(+), 3 deletions(-)

diff --git a/pages/api/javascript/eina/containers.txt 
b/pages/api/javascript/eina/containers.txt
index ba786b5..cde5521 100644
--- a/pages/api/javascript/eina/containers.txt
+++ b/pages/api/javascript/eina/containers.txt
@@ -170,8 +170,27 @@ Syntax
 var new_container = objA.concat(objC);
 </code>
 
-Concatenates two containers returning the result as a new container object.
+Concatenates two containers returning the result as a new container object. It 
performs a shallow copy of the container. Object **references** are copied 
(i.e. changes in the object will appear in both containers) and basic types are 
copied.
 
 <note warning>
-The concatenation operation will work only on the same type of containers 
(e.g. lists of ints with lists of ints).
-</note>
\ No newline at end of file
+The concatenation operation will work only on the same type of containers 
(e.g. lists of ints with lists of ints). Wrong arguments will raise TypeError.
+</note>
+
+=== slice([begin,[end]]) ===
+
+Syntax
+
+<code javascript>
+var x = obj.slice();
+var y = obj.slice(startIndex);
+var z = obj.slice(startIndex, endIndex);
+</code>
+
+The slice method retrieves portions of the container. The first argument is 
the index to start the slice operation (default is 0, beginning of the list) 
and the second argument indicates the index where the extraction should stop, 
not including it (defaults to the container size).
+
+It also performs a shallow copy like concat().
+
+Example usage:
+
+<code javascript>
+</code>
\ No newline at end of file

-- 


Reply via email to