옵셔널이란?

구현 코드


@frozen
public enum Optional<Wrapped>: ExpressibleByNilLiteral {

  case none
  case some(Wrapped)

  /// Creates an instance that stores the given value.
  @_transparent
  public init(_ some: Wrapped) { self = .some(some) }
	...