You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Playing around with replete on my new iPad Pro, I'm very pleased! Glad to know I haven't completely lost the ability to write a quick snippet of code.
I think that adding support for saving a REPL session to disk / gist, along with #110, could allow Replete to be an interesting code notebook for small automation tasks (e.g. grabbing data from an API and doing some munging).
The text was updated successfully, but these errors were encountered:
Finally get to a stage where you can use iTune sync doc and even self generation code to have code file stored, loaded and possibly amened. Not exactly pythonista but usable:
;; must use do to have more than 1 command
(do
(spit \"testdo-split1.clj\" \"(do (def x 333) (def y 444) (def z (str x))\")
(eval (reader/read-string (slurp \"testdo-split1.clj\")))
(println x y z)
)
This is a fuller example:
(do ;;
;; need to use quote not single quote for using require
(require (quote [cljs.reader :as reader]) (quote [replete.core :refer [slurp spit]]) (quote [replete.io :as io]))
(spit "testdo-split1.clj" "(do (def x 333) (def y 444) (def z (str x)))")
(eval (reader/read-string (slurp "testdo-split1.clj")))
(println x y z)
) ; x y z is in the env
Playing around with replete on my new iPad Pro, I'm very pleased! Glad to know I haven't completely lost the ability to write a quick snippet of code.
I think that adding support for saving a REPL session to disk / gist, along with #110, could allow Replete to be an interesting code notebook for small automation tasks (e.g. grabbing data from an API and doing some munging).
The text was updated successfully, but these errors were encountered: