DEV Community

Clarice Bouwer
Clarice Bouwer

Posted on

3 3

How to unmap a var from a Clojure namespace

I was working with a multimethod that I needed to redefine in my REPL and came across this doc.

There is an entry that states if you are in the REPL and need to redefine then you will need to unmap the var because defmulti won't allow you to redef.

This is how:

(ns-unmap *ns* 'something)
Enter fullscreen mode Exit fullscreen mode

Top comments (0)

Sentry image

See why 4M developers consider Sentry, “not bad.”

Fixing code doesn’t have to be the worst part of your day. Learn how Sentry can help.

Learn more

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay