Skip to content

Commit a700705

Browse files
committed
trivially identical updates
1 parent df7fcbb commit a700705

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

proposals/0494-add-is-identical-methods.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,22 +57,27 @@ let a = [1, 2, 3, 4]
5757
print(result(for: a))
5858
// Prints "computing new result"
5959
// Prints "[2, 4]"
60+
6061
let b = a
6162
print(result(for: b))
6263
// Prints "computing new result"
6364
// Prints "[2, 4]"
65+
6466
let c = [1, 2, 3, 4]
6567
print(result(for: c))
6668
// Prints "computing new result"
6769
// Prints "[2, 4]"
70+
6871
let d = [1, 2, 3, 4, 5, 6]
6972
print(result(for: d))
7073
// Prints "computing new result"
7174
// Prints "[2, 4, 6]"
75+
7276
let e = d
7377
print(result(for: e))
7478
// Prints "computing new result"
7579
// Prints "[2, 4, 6]"
80+
7681
let f = [1, 2, 3, 4, 5, 6]
7782
print(result(for: f))
7883
// Prints "computing new result"
@@ -113,19 +118,24 @@ let a = [1, 2, 3, 4]
113118
print(memoizer.result(for: a))
114119
// Prints "computing new result"
115120
// Prints "[2, 4]"
121+
116122
let b = a
117123
print(memoizer.result(for: b))
118124
// Prints "[2, 4]"
125+
119126
let c = [1, 2, 3, 4]
120127
print(memoizer.result(for: c))
121128
// Prints "[2, 4]"
129+
122130
let d = [1, 2, 3, 4, 5, 6]
123131
print(memoizer.result(for: d))
124132
// Prints "computing new result"
125133
// Prints "[2, 4, 6]"
134+
126135
let e = d
127136
print(memoizer.result(for: e))
128137
// Prints "[2, 4, 6]"
138+
129139
let f = [1, 2, 3, 4, 5, 6]
130140
print(memoizer.result(for: f))
131141
// Prints "[2, 4, 6]"

0 commit comments

Comments
 (0)