Just another update
This commit is contained in:
parent
a25938f123
commit
00a190b0a6
6591 changed files with 94363 additions and 23227 deletions
9
Task/Call-a-function/Go/call-a-function-6.go
Normal file
9
Task/Call-a-function/Go/call-a-function-6.go
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
fn := func(r rune) rune {
|
||||
if unicode.IsSpace(r) {
|
||||
return -1
|
||||
}
|
||||
return r
|
||||
}
|
||||
strings.Map(fn, "Spaces removed")
|
||||
strings.Map(unicode.ToLower, "Test")
|
||||
strings.Map(func(r rune) rune { return r + 1 }, "shift")
|
||||
Loading…
Add table
Add a link
Reference in a new issue