summaryrefslogtreecommitdiff
path: root/lib/nlp_ruby/misc.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/nlp_ruby/misc.rb')
-rw-r--r--lib/nlp_ruby/misc.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/nlp_ruby/misc.rb b/lib/nlp_ruby/misc.rb
new file mode 100644
index 0000000..9a4064f
--- /dev/null
+++ b/lib/nlp_ruby/misc.rb
@@ -0,0 +1,6 @@
+class Array
+ def max_index
+ self.index(self.max)
+ end
+end
+