Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re^2: RFC: Array::GroupBy (Synopsis)

by kyle (Abbot)
on Jan 06, 2009 at 16:30 UTC ( [id://734467]=note: print w/replies, xml ) Need Help??


in reply to Re: RFC: Array::GroupBy (Synopsis)
in thread RFC: Array::GroupBy

I think an examples section is a good idea, but I wouldn't want a full working example in the synopsis. The data structures it's working on tend to be large on the page, and I want to keep the synopsis short. For example, here's the shortest of the functional test cases I have so far:

{ name => 'two keys', group_by => ['key1', 'key2'], group_how => { count => 'count', }, input => [ { key1 => 'a', key2 => 'a', }, { key1 => 'a', key2 => 'a', }, { key1 => 'a', key2 => 'a', }, { key1 => 'a', key2 => 'b', }, { key1 => 'a', key2 => 'b', }, ], expected => [ { key1 => 'a', key2 => 'a', count => 3, }, { key1 => 'a', key2 => 'b', count => 2, }, ], },

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others chanting in the Monastery: (3)
As of 2024-04-25 23:34 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found