Created
April 3, 2022 08:59
-
-
Save KateLin-BASIC/4c19d354bedd099341ae24b5b5125989 to your computer and use it in GitHub Desktop.
Creation of Literal Array And Dynamic Array in Pharo
This file contains 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
| literal dynamic dynamicWithSemanticSugar | | |
literal := #(Bill Zoey Louis Francis). | |
dynamic := (Array new: 4) | |
at: 1 put: 'Bill'; | |
at: 2 put: 'Zoey'; | |
at: 3 put: 'Louis'; | |
at: 4 put: 'Francis'. | |
dynamicWithSemanticSugar := { 'Bill'. 'Zoey'. 'Louis'. 'Francis' } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment