]> Cypherpunks repositories - gostls13.git/commit
A codewalk through a simple program that illustrates several aspects of Go functions...
authorJohn DeNero <denero@google.com>
Fri, 8 Apr 2011 01:05:15 +0000 (18:05 -0700)
committerRob Pike <r@golang.org>
Fri, 8 Apr 2011 01:05:15 +0000 (18:05 -0700)
commit4ffee801ceaa37cd1750e66c3ba836dbcd9635a6
tree9f598f618c8a6e54151b349b74826da2a2d2ec4f
parent776fd72579a85e1e6e7d62942a46ddf3940893a9
A codewalk through a simple program that illustrates several aspects of Go functions: function objects, higher-order functions, variadic functions, tail recursion, etc.  The example program simulates the game of Pig, a dice game with simple rules but a nontrivial solution.

R=adg, rsc, iant2, r
CC=golang-dev
https://golang.org/cl/4306045
doc/codewalk/functions.xml [new file with mode: 0644]
doc/codewalk/pig.go [new file with mode: 0644]