1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

arrays: add chunk and window functions (#11476)

This commit is contained in:
ChAoS_UnItY
2021-09-13 21:13:32 +08:00
committed by GitHub
parent b9dfc89aa9
commit 2ced845e30
3 changed files with 77 additions and 3 deletions

View File

@ -72,9 +72,6 @@ pub fn get_uchar(s string, index int) int {
return res
}
// raw_index - get the raw chracter from the string by the given index value.
// example: '我是V Lang'.raw_index(1) => '是'
// raw_index - get the raw chracter from the string by the given index value.
// example: utf8.raw_index('我是V Lang', 1) => '是'
pub fn raw_index(s string, index int) string {