Skip to content

Instantly share code, notes, and snippets.

@fabb fabb/SongPoll3.swift
Created Dec 16, 2015

What would you like to do?
import Foundation
struct Song {
var title: String
var length: Float
mutating func addAdvertisement() {
self.title += " plus commercial"
self.length += 10
var song = Song(title: "Aerials", length: 240)

This comment has been minimized.

Copy link
Owner Author

fabb commented Dec 16, 2015

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.