Lesson 16 of 24 · +130 xp

Switch

Pattern match.

Explained simply

Your task

Write: switch x { case 0: print("zero"); default: print("other") }

switch.swift
← Back