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: "|")

Questions about programming?Chat with your personal AI assistant