From f5cd038493df8441303246c0ad20e5a5cf762acd Mon Sep 17 00:00:00 2001 From: Brian Picciano Date: Fri, 3 Oct 2014 15:47:08 -0400 Subject: [PATCH] fix my macro example cause I'm dumb --- README.md | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 2eb5f86..0bbf5f3 100644 --- a/README.md +++ b/README.md @@ -129,12 +129,15 @@ variable names in the body (utterly useless): # capitalize looks for the first letter in a string and capitalizes it # (. defn caplet [mapping body...] - (. eval (: elem-map - (. fn [x] - (. if (: mapping (: slice x 1)) - (: capitalize x) - x)) - body)) + (. eval + (. let + (: elem-map + (. fn [x] + (. if (: mapping (: slice x 1)) + (: capitalize x) + x)) + mapping) + body...))) #Usage (. caplet [foo "this is foo"