This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//: # Lazy Instantiation | |
//: | |
//: This playground demonstrates situations where lazily instantiating properties is valuable. | |
//: **NOTE:** This is a Swift 2.0 playground and must be opened in Xcode 7. | |
import UIKit | |
import CoreImage | |
//: A helper function to produce a random CGFloat in the range 0..<1 | |
func randomCGFloat() -> CGFloat { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let inputDictionary = [ | |
"author_name": "Robert Jordan", | |
"book_title": "Knife of Dreams", | |
"series": "The Wheel of Time, Book 11", | |
"publisher": "Tor Fantasy", | |
"published_date": "November 28, 2006" | |
] | |
let sortedKeys = inputDictionary.keys.array.sorted(<) | |
var queryTerms = Array<String>() |
NewerOlder