index

return first index of value in given collection


Parameters

index collection :string :dictionary :block :range
      value :any

Returns

  • :null
  • :integer
  • :string

Examples

copy
ind: index "hello" "e" print ind ; 1

copy
print index [1 2 3] 3 ; 2

copy
type index "hello" "x" ; :null

Related