This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Via clojure.core, metadata associations are only available to vars. | |
This is a method to associate metadata with lambda functions, | |
perhaps purposely exposing data a function closes upon, as encapsulation | |
is the *only* supported behavior for closure data. | |
(defrecord MetaFn | |
[md f] | |
clojure.lang.IFn | |
(applyTo [this args] | |
(apply (:f this) args)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(-> (java.time.ZonedDateTime/now) | |
(.withZoneSameLocal (java.time.ZoneId/of "America/Chicago")) | |
t/date-time->iso-local-date) |