Skip to content
Will Blanton edited this page Jul 27, 2018 · 2 revisions

Added functionality for Strings!

This is an Extension! Learn about using Extensions here!

Examples:

'0,1,2,3\n4,5,6,7'.csv_to_int_array(); // [0,1,2,3,4,5,6,7]
'0,1,2,3\n4,5,6,7'.csv_to_2d_int_array(); // [[0,1,2,3],[4,5,6,7]]
'Zerolib is a really cool library!'.contains('cool'); // true
'hi'.get_random(4, 'random text: ', ' cool, huh?'); // 'random text: Na9D cool, huh?'
Clone this wiki locally