From 0bb903a7463a0e286030fb0304be93e1656b247e Mon Sep 17 00:00:00 2001 From: gered Date: Tue, 2 Sep 2014 13:01:20 -0400 Subject: [PATCH] forgot this --- src/clj_hl7_fhir/util.clj | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/clj_hl7_fhir/util.clj b/src/clj_hl7_fhir/util.clj index 2315c69..059b2ee 100644 --- a/src/clj_hl7_fhir/util.clj +++ b/src/clj_hl7_fhir/util.clj @@ -105,3 +105,8 @@ (merge (if body {:body body}) params))) + +(defn second-last [coll] + (if (and (seq coll) + (> (count coll) 1)) + (nth coll (- (count coll) 2))))