Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re^2: How to hash without the hash- basic

by Util (Priest)
on Oct 26, 2011 at 19:58 UTC ( #933982=note: print w/replies, xml ) Need Help??


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

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://933982]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (3)
As of 2016-09-25 01:31 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Extraterrestrials haven't visited the Earth yet because:







    Results (463 votes). Check out past polls.