Jump to content

Retrieving an Element of an Array: Difference between revisions

Line 455:
element = ary.find{|el|el.length==3}
# => element = "big"</lang>
 
=={{header|Scala}}==
[[Category:Scala Implementations]]
{{libheader|Scala}}<lang Scala>val selectedElement = array(index)</lang>
 
==[[Slate]]==
Anonymous user
Cookies help us deliver our services. By using our services, you agree to our use of cookies.