Avatar
switch (open, close) { case (let open?, let close?): return "\(open)〜\(close)" case (let open?, nil): return "\(open)〜" case (nil, let close?): return "〜\(close)" case (nil, nil): return "" } 最近こんなん書いたけど、?ついてるからややこしいなーと (edited)