From Code to Community: Sponsoring The Perl and Raku Conference 2025 Learn more
123456789 #!/usr/bin/ruby### https://rosettacode.org/wiki/Remove_duplicate_elements#var ary = [1,1,2,1,'redundant',[1,2,3],[1,2,3],'redundant'];say ary.uniq.dump;say ary.last_uniq.dump;
#!/usr/bin/ruby
#
## https://rosettacode.org/wiki/Remove_duplicate_elements
var ary = [1,1,2,1,'redundant',[1,2,3],[1,2,3],'redundant'];
say ary.uniq.dump;
say ary.last_uniq.dump;