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))))