Sha256: c4505307f80195c9d80976ea62c11bfadcb370dd10060df28d1aa0233e2feb73
Contents?: true
Size: 602 Bytes
Versions: 14
Compression:
Stored size: 602 Bytes
Contents
// // Sampler.swift // DemoApp // // Created by MORITANAOKI on 2015/07/11. // Copyright (c) 2015年 MORITANAOKI. All rights reserved. // import Foundation struct Sample { let desc: String let result: String init(desc: String, result: String) { self.desc = desc self.result = result } func string() -> String { return "DESCRIPTION: \(desc)\t RESULT: \(result)" } } struct Sampler { let samples: [Sample] init(samples: [Sample]) { self.samples = samples } func print() { samples.map { println($0.string()) } } }
Version data entries
14 entries across 14 versions & 1 rubygems