Lesson 22 of 24 · +130 xp

Init

Struct constructor.

Explained simply

Your task

Write: init(x: Int) { self.x = x }

init.swift
← Back