nitlanguage
/
nit.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e1e9193
)
lib/collection: minor fix to doc in list.nit
author
Alexis Laferrière
<alexis.laf@xymus.net>
Sun, 26 Oct 2014 13:12:59 +0000
(09:12 -0400)
committer
Alexis Laferrière
<alexis.laf@xymus.net>
Mon, 27 Oct 2014 19:41:28 +0000
(15:41 -0400)
Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>
lib/standard/collection/list.nit
patch
|
blob
|
history
diff --git
a/lib/standard/collection/list.nit
b/lib/standard/collection/list.nit
index
4487ec3
..
f80e176
100644
(file)
--- a/
lib/standard/collection/list.nit
+++ b/
lib/standard/collection/list.nit
@@
-18,7
+18,9
@@
import abstract_collection
# Double linked lists.
class List[E]
super Sequence[E]
+
# Access
+
redef fun [](index) do return get_node(index).item
redef fun []=(index, item) do get_node(index).item = item