I
Iñaki Baz Castillo
Hi, given the following array:
array =3D ["qwe", "qwerty"]
How to get the shortest element ("qwe") from the array?
I whink I must inspect all the elements within the array and manually
select the shortest string, do I miss some cool feature of Array class
or Enumerable module?
Thanks a lot.
--=20
I=C3=B1aki Baz Castillo
<[email protected]>
array =3D ["qwe", "qwerty"]
How to get the shortest element ("qwe") from the array?
I whink I must inspect all the elements within the array and manually
select the shortest string, do I miss some cool feature of Array class
or Enumerable module?
Thanks a lot.
--=20
I=C3=B1aki Baz Castillo
<[email protected]>