RosettaCodeData/Task/Constrained-genericity/Swift/constrained-genericity-2.swift

4 lines
49 B
Swift

struct FoodBox<T: Eatable> {
var food: [T]
}