Hello Philos, It's no different to adding a function to any other namespace:
% clj Clojure 1.9.0 user=> (ns clojure.core) nil clojure.core=> (defn foobar [x] (str "foobar " x)) #'clojure.core/foobar clojure.core=> (ns user) nil user=> (foobar "12") "foobar 12" user=> foobar #object[clojure.core$foobar 0x43b6123e "clojure.core$foobar@43b6123e"] user=> However is it truly a good idea? On Sun, 25 Feb 2018, at 07:08, Philos Kim wrote: > Is there any way to add my own function to clojure.core namespace? > Because I want to use that function globally without 'require' or 'use'. > > Thanks in advance. > > -- > You received this message because you are subscribed to the Google > Groups "Clojure" group. > To post to this group, send email to [email protected] > Note that posts from new members are moderated - please be patient with > your first post. > To unsubscribe from this group, send email to > [email protected] > For more options, visit this group at > http://groups.google.com/group/clojure?hl=en > --- > You received this message because you are subscribed to the Google > Groups "Clojure" group. > To unsubscribe from this group and stop receiving emails from it, send > an email to [email protected]. > For more options, visit https://groups.google.com/d/optout. -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to [email protected] Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/clojure?hl=en --- You received this message because you are subscribed to the Google Groups "Clojure" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
