RosettaCodeData/Task/Order-two-numerical-lists/Swift/order-two-numerical-lists.swift
2023-07-01 13:44:08 -04:00

3 lines
107 B
Swift

let a = [1,2,1,3,2]
let b = [1,2,0,4,4,0,0,0]
println(lexicographicalCompare(a, b)) // this is "less than"