Beefy Boxes and Bandwidth Generously Provided by pair Networks
Come for the quick hacks, stay for the epiphanies.
 
PerlMonks  

dhoss's scratchpad

by stonecolddevin (Parson)
on Jun 02, 2004 at 01:49 UTC ( #358977=scratchpad: print w/replies, xml ) Need Help??

package main import ( "strings" "code.google.com/p/go-tour/wc" ) func WordCount(s string) map[string]int { words := strings.Fields(s) wordCount := make(map[string]int) for i := range words { wordCount[words[i]]++ } return wordCount } func main() { wc.Test(WordCount) }
Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others meditating upon the Monastery: (3)
As of 2023-12-01 22:38 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What's your preferred 'use VERSION' for new CPAN modules in 2023?











    Results (9 votes). Check out past polls.

    Notices?