Hello Poetry
Submit your work and get some sparkles! Create free account
public struct Love {     private enum Person {         case female         case male         case other(_ type:String)     }     public let people:[Person]     private var loveAmount:Int     public init(people:[Person]) {         self.people = people         loveAmount = 0     }     public mutating func moreLoveForEachOther(addedLove:Int) {         loveAmount += addedLove     } }
0
May 13, 2021
May 13, 2021 at 5:39 PM UTC
Programming Love
public struct Love {     private enum Person {         case female         case male         case other(_ type:String)     }     public let people:[Person]     private var loveAmount:Int     public init(people:[Person]) {         self.people = people         loveAmount = 0     }     public mutating func moreLoveForEachOther(addedLove:Int) {         loveAmount += addedLove     } }
(this is a Swift programming structure)
nicetomeetyou
Written by
May 13, 2021
May 13, 2021 at 5:39 PM UTC
Request permission to use this poem