Skip to content

Commit aefcaed

Browse files
authored
Merge pull request #592 from remlostime/lru-swift
[Swift 4] Update LRU Cache
2 parents fd0fb3e + 9b6ca04 commit aefcaed

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

LRU Cache/LRUCache.playground/Contents.swift

+5
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
// last checked with Xcode 9.0b4
2+
#if swift(>=4.0)
3+
print("Hello, Swift 4!")
4+
#endif
5+
16
let cache = LRUCache<String>(2)
27
cache.set("a", val: 1)
38
cache.set("b", val: 2)

0 commit comments

Comments
 (0)