logoalt Hacker News

tailrecursiontoday at 4:06 AM0 repliesview on HN

Yes. I don't know Swift, but it appears that Swift's protocol and class are similar to Java's interface and implementation (class), and defining a protocol would be required in Swift in order to define a generic table.LOOKUP(key) operator.