From 0db2f5a5abff2ee79afabd186d9355df769575e7 Mon Sep 17 00:00:00 2001 From: Magnar Sveen Date: Thu, 15 Aug 2013 19:06:08 +0200 Subject: [PATCH] Fix second example for -last/first-item --- README.md | 4 +++- dev/examples.el | 4 ++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 3a10b12..33b53e8 100644 --- a/README.md +++ b/README.md @@ -701,6 +701,7 @@ Returns the first item of `list`, or nil on an empty list. ```cl (-first-item '(1 2 3)) ;; => 1 +(-first-item nil) ;; => nil ``` ### -last-item `(list)` @@ -709,6 +710,7 @@ Returns the first item of `list`, or nil on an empty list. ```cl (-last-item '(1 2 3)) ;; => 3 +(-last-item nil) ;; => nil ``` ### -union `(list list2)` @@ -964,7 +966,7 @@ Change `readme-template.md` or `examples-to-docs.el` instead. ## Changelist -### From 1.7.0 to master +### From 1.7.0 to 1.8.0 - Add `-first-item` and `-last-item` (Wilfred Hughes) diff --git a/dev/examples.el b/dev/examples.el index c382921..907ba6d 100644 --- a/dev/examples.el +++ b/dev/examples.el @@ -287,11 +287,11 @@ (defexamples -first-item (-first-item '(1 2 3)) => 1 - (-first-item nil => nil)) + (-first-item nil) => nil) (defexamples -last-item (-last-item '(1 2 3)) => 3 - (-last-item nil => nil)) + (-last-item nil) => nil) (defexamples -union (-union '(1 2 3) '(3 4 5)) => '(1 2 3 4 5)