RosettaCodeData/Task/Order-two-numerical-lists/Swift/order-two-numerical-lists.swift
2016-12-05 23:44:36 +01: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"