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

tools: new tool to extracts function names declared in V files

This commit is contained in:
Delyan Angelov
2019-10-21 14:14:28 +03:00
committed by Alexander Medvednikov
parent cd8b0d04bb
commit eef73eea22
12 changed files with 184 additions and 40 deletions

View File

@ -141,7 +141,7 @@ pub fn (s array) left(n int) array {
pub fn (s array) right(n int) array {
if n >= s.len {
return s
return new_array(0, 0, s.element_size)
}
return s.slice(n, s.len)
}