Add reverse function to arrays.

This commit is contained in:
Stephen Chung
2020-09-24 10:51:21 +08:00
parent d91d983c74
commit 9fcbda1ba4
2 changed files with 5 additions and 0 deletions

View File

@@ -133,6 +133,10 @@ mod array_functions {
list.clear();
}
}
#[inline(always)]
pub fn reverse(list: &mut Array) {
list.reverse();
}
}
fn pad<T: Variant + Clone>(