http://www.perlmonks.org?node_id=933982


in reply to Re: How to hash without the hash- basic
in thread How to hash without the hash- basic

use v6; my @array = < 1 3 4 55 4 3 4 22 1 3 4 3 2 2 3 34 >; my @y = @array.classify({$_})\ .categorize({ .value.elems==1 || Nil }).[0].value».key; say "{@y.sort.join(',')} are the numbers that appear only once" if @y; #my @y = @array.classify({$_}).grep({ .value.elems == 1 })».key;

Replies are listed 'Best First'.
Re^3: How to hash without the hash- basic
by moritz (Cardinal) on Oct 27, 2011 at 04:48 UTC