Skip to content

Instantly share code, notes, and snippets.

@gaeng2y
Created April 18, 2022 08:54
Show Gist options
  • Save gaeng2y/532b3530e6ea03bf92593f04a9fffb39 to your computer and use it in GitHub Desktop.
Save gaeng2y/532b3530e6ea03bf92593f04a9fffb39 to your computer and use it in GitHub Desktop.
동기형
func f(_ nums: [Int]) -> Int {
sleep(1)
let sum = nums.reduce(0, +)
return sum
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment