Public Vars

Back

prn-str (clj)

(source)

function

(prn-str & xs)
prn to a string, returning it

Examples

typedclojure/typedclojure
(ns ^:no-doc typed.ann.clojure
  "Type annotations for the base Clojure distribution."
  #?(:cljs (:require-macros [typed.ann-macros.clojure :as macros]))
  (:require [clojure.core :as cc]
            [typed.clojure :as t]
            #?(:clj [typed.ann-macros.clojure :as macros])
            #?(:clj typed.ann.clojure.jvm) ;; jvm annotations
            #?(:clj clojure.core.typed))
  #?(:clj
     (:import (clojure.lang PersistentHashSet PersistentList
                            APersistentMap #_IPersistentCollection
                            #_ITransientSet
                            IRef)
              (java.util Comparator Collection))))

cc/str [t/Any :* :-> t/Str]
cc/prn-str [t/Any :* :-> t/Str]
cc/pr-str [t/Any :* :-> t/Str]
cc/newline [:-> nil]
mauricioszabo/repl-tooling
(ns repl-tooling.features.autocomplete-test
  (:require [reagent.core :as r]
            [clojure.test :refer [async testing is]]
            [clojure.core.async :as async]
            [matcher-combinators.matchers :refer [embeds]]
            [check.core :refer [check]]
            [check.async-old :refer [await!]]
            [devcards.core :as cards :include-macros true]
            [repl-tooling.features.autocomplete.simple :as simple]
            [repl-tooling.features.autocomplete.compliment :as compliment]
            [repl-tooling.features.autocomplete.suitable :as suit]
            [repl-tooling.eval-helpers :as h]))

(set! cards/test-timeout 20000)
(cards/deftest clojure-simple-autocomplete
  (h/async-with-repl "Clojure simple autocomplete"
    (testing "completing core functions"
      (let [res (simple/for-clj repl 'user "prn")]
        (check (await! res) => [{:candidate "prn" :type :function}
                                {:candidate "prn-str" :type :function}])))

(cards/deftest clojurescript-simple-autocomplete
  (h/async-with-cljs-repl "ClojureScript with simple complete"
    (testing "completing core functions"
      (let [res (simple/for-cljs repl 'repl-tooling.integration.fixture-app "prn")]
        (check (await! res) => [{:candidate "prn" :type :function}
                                {:candidate "prn-str" :type :function}
                                {:candidate "prn-str-with-opts" :type :function}])))
Cnly/clj-latex
(ns mmul
  (:require [clojure.core.matrix :as m]
            [clojure.pprint :as pp]
            [clj-latex.core :as l]))

      "This result can be produced using the following Clojure source code (with clojure.core.matrix):"
      ('verbatim
       (l/esc (prn-str ans-src))))))))