Skip to content

Commit e4e000b

Browse files
committed
trivially identical updates
1 parent a700705 commit e4e000b

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

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

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -359,20 +359,25 @@ let a = [1, 2, 3, 4]
359359
print(memoizer.result(for: a))
360360
// Prints "computing new result"
361361
// Prints "[2, 4]"
362+
362363
let b = a
363364
print(memoizer.result(for: b))
364365
// Prints "[2, 4]"
366+
365367
let c = [1, 2, 3, 4]
366368
print(memoizer.result(for: c))
367369
// Prints "computing new result"
368370
// Prints "[2, 4]"
371+
369372
let d = [1, 2, 3, 4, 5, 6]
370373
print(memoizer.result(for: d))
371374
// Prints "computing new result"
372375
// Prints "[2, 4, 6]"
376+
373377
let e = d
374378
print(memoizer.result(for: e))
375379
// Prints "[2, 4, 6]"
380+
376381
let f = [1, 2, 3, 4, 5, 6]
377382
print(memoizer.result(for: f))
378383
// Prints "computing new result"

0 commit comments

Comments
 (0)