Fixed documentation of `-last-item'.

master
Titus von der Malsburg 12 years ago
parent 2dfd748804
commit c08fcba11d
  1. 2
      README.md
  2. 2
      dash.el

@ -1136,7 +1136,7 @@ Returns the first item of `list`, or nil on an empty list.
#### -last-item `(list)` #### -last-item `(list)`
Returns the first item of `list`, or nil on an empty list. Returns the last item of `list`, or nil on an empty list.
```cl ```cl
(-last-item '(1 2 3)) ;; => 3 (-last-item '(1 2 3)) ;; => 3

@ -337,7 +337,7 @@ To get the first item in the list no questions asked, use `car'."
"Returns the first item of LIST, or nil on an empty list.") "Returns the first item of LIST, or nil on an empty list.")
(defun -last-item (list) (defun -last-item (list)
"Returns the first item of LIST, or nil on an empty list." "Returns the last item of LIST, or nil on an empty list."
(car (last list))) (car (last list)))
(defmacro --count (pred list) (defmacro --count (pred list)

Loading…
Cancel
Save