I have a string which is separated by "/"
, which I then split into an array. eg.
local string = 'Code/Github/Exercises'
local array = std.split(string, "/")
// ['Code', 'Github', 'Exercises']
How do I then convert array
so that I can get the output:
// ['Code', 'Code/Github', 'Code/Github/Exercises']