Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

dhoss's scratchpad

by stonecolddevin (Vicar)
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
Chatterbox?
[GrandFather]: That's a whole different time zone LanX
choroba waves to LanX
[choroba]: I can almost see you!

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (5)
As of 2017-02-21 06:15 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Before electricity was invented, what was the Electric Eel called?






    Results (307 votes). Check out past polls.