You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
原文:
Exercise 5.9: Write a function expand(s string, f func(string) string) string that replaces each substring “$foo” within s by the text returned by f("foo").
翻译:
编写函数expand,将s中的"foo"替换为f("foo")的返回值。 func expand(s string, f func(string) string) string
主要是翻译里 $foo 缺少了$,让人无法理解题意
The text was updated successfully, but these errors were encountered:
原文:
Exercise 5.9: Write a function
expand(s string, f func(string) string)
string that replaces each substring “$foo” withins
by the text returned byf("foo")
.翻译:
编写函数expand,将s中的"foo"替换为f("foo")的返回值。
func expand(s string, f func(string) string) string
主要是翻译里 $foo 缺少了
$
,让人无法理解题意The text was updated successfully, but these errors were encountered: