 
 // Generic version of randomElement(_:)
 
-func randomElement<T>(array: Array<T>) -> T {
+func randomElement<T>(array: [T]) -> T {
     let randomIndex = randomPositiveNumberUpTo(array.count)
     return array[randomIndex]
 }
 
 // Generic version of formattedBands(_:fns:)
 
-func updatedItems<T>(items: Array<T>, functions: Array<T -> T>) -> Array<T> {
+func updatedItems<T>(items: [T], functions: [T -> T]) -> [T] {
     return items.map {
         functions.reduce($0) { $1($0) }
     }

// Functional 1

typealias BandProperty = String
typealias Band = Dictionary<String, BandProperty>
typealias BandTransform = Band -> Band
typealias BandPropertyTransform = BandProperty -> BandProperty


}

func drawFunctional(state: State) -> () {
    let outputs = state.positions["positions"]!.map { position in outputCar(position) }
    
    print(join("\n", outputs))
}
