New

List
दोनों तरफ
केवल क्राफ्टलैंड स्टूडियो पीसी पर उपलब्ध है

Create a list

डिक्लेरेशन

func New(length int, capicity int) List<object>
go

पैरामीटर्स

इनपुट

नाम टाइप विवरण
Length Int The initial length of the list, must be less than or equal to the initial capacity
Capacity Int The initial capacity of the list, must be greater than or equal to the initial length. The capacity can be expanded dynamically, but doing so will consume some performance. It is recommended to set an appropriate value upon construction

वापस

टाइप विवरण
List Created list