Open dev-muuu opened 1 year ago
https://school.programmers.co.kr/learn/courses/30/lessons/49993?language=swift
String.starts(with: ) //접두사가 동일한지 아닌지를 판단
@https://developer.apple.com/documentation/swift/string/starts(with:)
starts(with:) 예시 코드
starts(with:)
let a = 1...3 let b = 1...10 print(b.starts(with: a)) // Prints "true"
https://school.programmers.co.kr/learn/courses/30/lessons/49993?language=swift