Attention | Topic was automatically imported from the old Question2Answer platform. | |
Asked By | hashak |
var array = ["a", "b", "c", "d"]
How can I remove all items after “b”.
Attention | Topic was automatically imported from the old Question2Answer platform. | |
Asked By | hashak |
var array = ["a", "b", "c", "d"]
How can I remove all items after “b”.
Reply From: | volzhs |
var array = ["a", "b", "c", "d"]
array.resize(2)
print(array)