Skip to content

Instantly share code, notes, and snippets.

@Li-Bot Li-Bot/performance_data.swift Secret
Created Mar 9, 2020

Embed
What would you like to do?
let elementsCount = 10_000_000
let fahrenheit = Array(repeating: 0.0, count: elementsCount).map { _ -> Double in
return Double.random(in: 32.0 ... 113.0)
}
var fahrenheits = [[Double]]()
for _ in 0 ..< totalElements {
fahrenheits.append(Array(repeating: 0.0, count: 1).map { _ -> Double in
return Double.random(in: 32.0 ... 113.0)
})
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.