Back

repeat (clj)

(source)

function

(repeat s) (repeat s n)
Repeats string n times.

Examples

penpot/penpot
(ns app.main.ui.cursors
  (:require-macros [app.main.ui.cursors :refer [cursor-ref cursor-fn collect-cursors]])
  (:require
   [app.util.timers :as ts]
   [cuerdas.core :as str]
   [rumext.v2 :as mf]))

    [:section.debug-icons-preview
     (for [[key value] entries]
       (let [value (if (fn? value) (value @rotation) value)]
         [:div.cursor-item {:key key}
          [:div {:style {:width "100px"
                         :height "100px"
                         :background-image (-> value (str/replace #"(url\(.*\)).*" "$1"))
                         :background-size "contain"
                         :background-repeat "no-repeat"
                         :background-position "center"
                         :cursor value}}]