init commit
This commit is contained in:
@@ -36,6 +36,10 @@ defmodule CljElixir.Printer do
|
||||
do_print_str(value)
|
||||
end
|
||||
|
||||
@doc "Clojure-compatible str: nil→\"\", strings pass through, else print representation"
|
||||
def str_value(nil), do: ""
|
||||
def str_value(value), do: print_str(value)
|
||||
|
||||
# Check if IPrintWithWriter is compiled and implemented for this value
|
||||
defp protocol_implemented?(value) do
|
||||
case Code.ensure_loaded(CljElixir.IPrintWithWriter) do
|
||||
|
||||
Reference in New Issue
Block a user