(truncate m* x)
Example: (? {:coll-limit 5} (with-meta (range 8) {:foo :bar}))
Assuming x is a (contrived) coll limit of 8, fireworks.truncate/truncate gets called recursively, and all coll types are converted to vectors. Metadata gets attached to all values and nested values.
^{:fw/truncated {:og-x '(0 1 2 3 4 5 6 7), :coll-type? true, :carries-meta? true, :array-map? false, :kv? false, :user-meta {:foo :bar}, :truncated-coll-size 5, :map-like? false, :user-meta? nil, :type 'clojure.lang.LongRange, :too-deep? false, :coll-size 8, :all-tags #{:coll :seq}, :coll-limit 5, :coll-size-adjust 8, :sev? false, :num-dropped 3, :top-level-sev? false, :depth 0, :t :seq, :x '(0 1 2 3 4 5 6 7), :js-typed-array? false, :val-is-atom? false, :val-is-volatile? false, :number-type? false, :js-map-like? false}, :user-meta {:foo :bar}} [^{...} 1 ^{...} 2 ^{...} 3 ^{...} 4]
Example: (? {:coll-limit 5} (with-meta (range 8) {:foo :bar})) Assuming x is a (contrived) coll limit of 8, fireworks.truncate/truncate gets called recursively, and all coll types are converted to vectors. Metadata gets attached to all values and nested values. ^{:fw/truncated {:og-x '(0 1 2 3 4 5 6 7), :coll-type? true, :carries-meta? true, :array-map? false, :kv? false, :user-meta {:foo :bar}, :truncated-coll-size 5, :map-like? false, :user-meta? nil, :type 'clojure.lang.LongRange, :too-deep? false, :coll-size 8, :all-tags #{:coll :seq}, :coll-limit 5, :coll-size-adjust 8, :sev? false, :num-dropped 3, :top-level-sev? false, :depth 0, :t :seq, :x '(0 1 2 3 4 5 6 7), :js-typed-array? false, :val-is-atom? false, :val-is-volatile? false, :number-type? false, :js-map-like? false}, :user-meta {:foo :bar}} [^{...} 1 ^{...} 2 ^{...} 3 ^{...} 4]
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close