Skip to content

Instantly share code, notes, and snippets.

@koturn
Last active January 3, 2017 19:52
Show Gist options
  • Save koturn/cc0b68bb4b2e7ca78917bfa43d6d8bce to your computer and use it in GitHub Desktop.
Save koturn/cc0b68bb4b2e7ca78917bfa43d6d8bce to your computer and use it in GitHub Desktop.
要素数を指定して配列を生成したときの挙動
func main()
var str: []char :: "abcdefgh"
var array: []char :: #[42]char
do cui@print((^array).toStr()) { => 8 になる}
do cui@print(array[0].toStr()) { => a になる}
end func
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment