-
Notifications
You must be signed in to change notification settings - Fork 9
ArrayExt
Will Blanton edited this page Jul 27, 2018
·
6 revisions
This is an Extension! Learn about using Extensions here!
["0", "1", "2", "3"].strings_to_ints(); // [0, 1, 2, 3]
["apple", "orange", "banana"].contains("apple"); // true
[0, 1, 2, 3].last(); // 3
[0, 1, 2, 3].get_random(); // 2
[0, 1, 2, 3].shuffle(); // [2, 1, 3, 0]
[0, 1].merge([2, 3]); // [0, 1, 2, 3]
[[0, 1], [2, 3]].flatten(); // [0, 1, 2, 3]
For more info, please check out the API: http://01010111.com/zerolib/