Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
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
Chatterbox?
and !@monks...

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (4)
As of 2018-07-19 04:29 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    It has been suggested to rename Perl 6 in order to boost its marketing potential. Which name would you prefer?















    Results (402 votes). Check out past polls.

    Notices?