update
This commit is contained in:
parent
3cde9907a2
commit
23a0f74a8a
9
mystrings.go
Normal file
9
mystrings.go
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
package mystrings
|
||||||
|
|
||||||
|
func Reverse(s string) string {
|
||||||
|
result := ""
|
||||||
|
for _, v := range s {
|
||||||
|
result = string(v) + result
|
||||||
|
}
|
||||||
|
return result
|
||||||
|
}
|
||||||
Loading…
x
Reference in New Issue
Block a user