get

get collection's item by given index


Parameters

get collection :string :date :binary :dictionary :object :store :block :range :bytecode
    index :any

Returns

  • :any

Examples

copy
user: #[ name: "John" surname: "Doe" ] print user\name ; John print get user 'surname ; Doe print user\surname ; Doe

copy
arr: ["zero" "one" "two"] print arr\1 ; one print get arr 2 ; two y: 2 print arr\[y] ; two

copy
str: "Hello world!" print str\0 ; H print get str 1 ; e z: 0 print str\[z+1] ; e

Related