Last active
January 3, 2017 19:52
-
-
Save koturn/cc0b68bb4b2e7ca78917bfa43d6d8bce to your computer and use it in GitHub Desktop.
要素数を指定して配列を生成したときの挙動
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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