Compare a list of strings: Difference between revisions
→{{header|Ruby}}: simplified even more.
(→{{header|Ruby}}: simplified all equal test.) |
(→{{header|Ruby}}: simplified even more.) |
||
Line 376:
=={{header|Ruby}}==
<lang ruby>
strings.uniq.
strings == strings.sort # sorted?
</lang>
|