对于向量,请使用peek获取恒定时间 user=> (peek [1 2 3 4 5]) 5. 对于Java数组, user=> (let [a (to-array [1 2 3 4 5])] (aget a (dec (alength a)))) 5.
確定! 回上一頁