mirror of
https://github.com/gopl-zh/gopl-zh.github.com.git
synced 2025-08-14 18:41:42 +00:00
ch5-05 done
This commit is contained in:
@@ -122,6 +122,6 @@ $ ./outline2 http://gopl.io
|
|||||||
|
|
||||||
練習 **5.9** :編寫函數 expand,將s中的"foo"替換爲f("foo")的返迴值。
|
練習 **5.9** :編寫函數 expand,將s中的"foo"替換爲f("foo")的返迴值。
|
||||||
|
|
||||||
```go
|
```Go
|
||||||
func expand(s string, f func(string) string) string
|
func expand(s string, f func(string) string) string
|
||||||
```
|
```
|
Reference in New Issue
Block a user