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)

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more