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

builtin: make map.keys() public

This commit is contained in:
Alexander Medvednikov 2021-11-04 19:09:37 +03:00
parent ace9444108
commit 7ea57bfa1e

View File

@ -602,7 +602,7 @@ pub fn (mut m map) delete(key voidptr) {
}
// Returns all keys in the map.
fn (m &map) keys() array {
pub fn (m &map) keys() array {
mut keys := __new_array(m.len, 0, m.key_bytes)
mut item := unsafe { &byte(keys.data) }
if m.key_values.deletes == 0 {