< :the previous in number
^ :the list in numerical order
> :the next in number
P :the previous artilce (have the same parent)
N :the next artilce (have the same parent)
|<:the top of this thread
>|:the next thread
^ :the parent (reply-to)
_:the child (an article replying to this)
>:the elder article having the same parent
<:the youger article having the same parent
---:split window and show thread lists
| :split window (vertically) and show thread lists
~ :close the thread frame
.:the index
..:the index of indices
Try following :
irb(main):035:0> k = [9, 9, 6, 0, 1, 4, 5, 6, 9, 1, 9]
=> [9, 9, 6, 0, 1, 4, 5, 6, 9, 1, 9]
irb(main):034:0> k.each_with_index.collect{|t,i| i if t ==
k.max}.compact
=> [0, 1, 8, 10]
Esha
--
Posted via http://www.ruby-forum.com/.