[swift-users] Can't implement generic subscript in protocol

Joanna Carter joanna at carterconsulting.org.uk
Sat Sep 16 03:44:34 CDT 2017

Hi Slava

> You could also write an explicit closure that loads the subscript:
> let fn = { base[$0] }

Thank you so much ! This indeed is the answer and is absolutely logical, I just couldn't see it.


Joanna Carter
Carter Consulting

More information about the swift-users mailing list