Generation

generate functionThu, 23 Mar 2023

generate numbers from 000 to 999 separated whit a |

let numbers = (0..<1000).map { String(format: "%03d", $0) }.joined(separator: "|")

Want to kickstart your project?Use the new AI Studio to create your code