A list and an array are different types; nothing converts by itself.
list_array.zg
# A list and an array are different types; nothing converts by itself (2026-09-19).# `to.array[…]` freezes a list's length, `to.list[…]` lets an array grow (owner, 2026-09-23).# The element type stays, so it is not written. `give` hands the elements over; `copy` keeps the original.MAIN{letmut'l':list[int32]=[1,2];list.append[lend.mut'l',value3];let'a':=to.array[give'l'];# [1, 2, 3], can no longer growletmut'm':=to.list[copy'a'];# 'a' is still herelist.append[lend.mut'm',value4];letmut's':list[int32]=array.slice[lend'a',frompos2,topos3];# a slice is a list, an array's toolist.append[lend.mut's',value9];std::print.useful['a'," ",'m'," ",'s',newln];}