# How to define a list in k-lang?
To define a data-type as a list in k-lang, use * after the data-type.
For example, participantList is defined as an List of String here:
data Lottery(
lotteryName:String,
amount:Int,
participantList:String*,
winner:String?,
status:String
)
Note: This is applicable in all k files, for example while defining any input/output, or a property inside a collection.