nitlanguage
/
nit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
ni_nitdoc: Get last element in Set
[nit.git]
/
src
/
ni_nitdoc.nit
diff --git
a/src/ni_nitdoc.nit
b/src/ni_nitdoc.nit
index
30e4c28
..
d0e2f61
100644
(file)
--- a/
src/ni_nitdoc.nit
+++ b/
src/ni_nitdoc.nit
@@
-1189,6
+1189,12
@@
redef class MClassDef
end
end
+redef class Set[E]
+ fun last: E do
+ return to_a[length-1]
+ end
+end
+
# Create a tool context to handle options and paths
var toolcontext = new ToolContext
toolcontext.process_options