Schulung_iOS/Playground.swift
2025-10-21 09:17:48 +02:00

18 lines
310 B
Swift

import Playgrounds
import Foundation
var bike = Bike.trek
let train = Train { Bike.trek }
@resultBuilder struct BikeBuilder {
static func buildBlock(_ components: Bike) -> Bike {
components
}
}
#Playground {
// bike.price
// train.makeSomeNoise("Choo Choo!")
train.content.name
}