mirror of https://github.com/01-edu/public.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
10 lines
133 B
10 lines
133 B
5 years ago
|
package correct
|
||
5 years ago
|
|
||
|
func NRune(s string, n int) rune {
|
||
|
if n > len(s) || n < 1 {
|
||
|
return 0
|
||
|
}
|
||
|
runes := []rune(s)
|
||
|
return runes[n-1]
|
||
|
}
|