Skip to content

Instantly share code, notes, and snippets.

@lizixroy
Created July 28, 2016 03:07
Show Gist options
  • Save lizixroy/da0ff86778aa85203076ed83663e48d7 to your computer and use it in GitHub Desktop.
Save lizixroy/da0ff86778aa85203076ed83663e48d7 to your computer and use it in GitHub Desktop.
let wordCount = words.count
var table = [[[ParseTreeNode]]]()
for _ in 0...words.count - 1 {
let array = [[ParseTreeNode]](count: wordCount, repeatedValue: [ParseTreeNode]())
table.append(array)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment