Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- protocol Time {
- associatedtype Heroi
- var nome : String {get set}
- var herois : [Heroi] {get set}
- mutating func add(heroi : Heroi)
- }
- extension Time {
- mutating func add(heroi: Heroi) {
- herois.append(heroi)
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement