Improve docstring for last (#1829)

Co-authored-by: sogaiu <983021772@users.noreply.github.com>
This commit is contained in:
sogaiu
2026-08-23 11:05:00 -05:00
committed by GitHub
co-authored by sogaiu
parent 4815812827
commit 96e07aab36
+8 -3
View File
@@ -909,9 +909,14 @@
(get x 0))
(defn last
"Get the last element from an indexed data structure."
[xs]
(get xs (- (length xs) 1)))
``
Get the final element from `x`.
`x` can be a bytes, indexed, or abstract type value with suitable
`get` and `length` methods.
``
[x]
(get x (- (length x) 1)))
## Polymorphic comparisons