回答編集履歴

1

すぺるみす

2018/03/28 14:52

投稿

MasakiHori
MasakiHori

スコア3384

test CHANGED
@@ -6,11 +6,11 @@
6
6
 
7
7
  ```swift
8
8
 
9
- struct Stump {
9
+ struct Stamp {
10
10
 
11
11
 
12
12
 
13
- enum StumpType {
13
+ enum StampType {
14
14
 
15
15
  case a
16
16
 
@@ -24,11 +24,11 @@
24
24
 
25
25
  let date: Int
26
26
 
27
- let type: StumpType
27
+ let type: StampType
28
28
 
29
29
 
30
30
 
31
- init?(date: Int, type: StumpType) {
31
+ init?(date: Int, type: StampType) {
32
32
 
33
33
 
34
34
 
@@ -52,7 +52,7 @@
52
52
 
53
53
 
54
54
 
55
- extension Stump: CustomStringConvertible {
55
+ extension Stamp: CustomStringConvertible {
56
56
 
57
57
 
58
58
 
@@ -74,11 +74,11 @@
74
74
 
75
75
 
76
76
 
77
- struct RandomStumpType: Sequence, IteratorProtocol {
77
+ struct RandomStampType: Sequence, IteratorProtocol {
78
78
 
79
79
 
80
80
 
81
- func next() -> Stump.StumpType? {
81
+ func next() -> Stamp.StampType? {
82
82
 
83
83
 
84
84
 
@@ -100,9 +100,9 @@
100
100
 
101
101
 
102
102
 
103
- zip(Array(0..<7), RandomStumpType())
103
+ zip(Array(0..<7), RandomStampType())
104
104
 
105
- .flatMap { Stump(date: $0.0, type: $0.1) }
105
+ .flatMap { Stamp(date: $0.0, type: $0.1) }
106
106
 
107
107
  .forEach { print($0) }
108
108