Julia LanguageArrays


Syntax

  • [1,2,3]
  • [1 2 3]
  • [1 2 3; 4 5 6; 7 8 9]
  • Array(type, dims...)
  • ones(type, dims...)
  • zeros(type, dims...)
  • trues(type, dims...)
  • falses(type, dims...)
  • push!(A, x)
  • pop!(A)
  • unshift!(A, x)
  • shift!(A)

Parameters

ParametersRemarks
Forpush!(A, x), unshift!(A, x)
AThe array to add to.
xThe element to add to the array.