cell-labs / cell-script

Cell Script is a new designed language for smart-contract programming on UTXO chain, currently supports CKB.
https://cellscript.io
MIT License
20 stars 6 forks source link

support make constructor for slice #14

Closed douyixuan closed 3 months ago

douyixuan commented 3 months ago

minimal example:

s := []uint64{0, 1, 2}
size := len(s)
p := make([]int, size, size) // type, len, cap