Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
(def g
(fn*
([xs acc]
(if (let*
[or__3975__auto__ (nil? xs)]
(if or__3975__auto__ or__3975__auto__ (sequential? xs)))
nil
(do
(throw
(new
java.lang.AssertionError
(str
"Assert failed: "
(pr-str
'(let*
[or__3975__auto__ (nil? xs)]
(if or__3975__auto__
or__3975__auto__
(sequential? xs)))))))))
(if (number? acc)
nil
(do
(throw
(new
java.lang.AssertionError
(str "Assert failed: " (pr-str '(number? acc)))))))
(let*
[% (if (nil? xs) acc (recur (next xs) (+ (first xs) acc)))]
(if number?
nil
(do
(throw
(new
java.lang.AssertionError
(str "Assert failed: " (pr-str 'number?))))))
%))))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment