我想访问某个数组的最后一个元素。
我正在使用length:
length
last_element = x[length(x)]
这样对吗?是否有一种规范的方式来访问 Julia 中有序集合的最后一个元素?
julia
julia ×1