Compare commits

..

No commits in common. '5a6afd49b09a9de9c2b28cbd9b5e8741f6154726' and '863345c28c0476e413f11d04e1ce6545bc4a2975' have entirely different histories.

  1. 16
      src/rustint/core.clj

@ -2531,7 +2531,6 @@
(defn especificador-formato [arg, rustf]
(cond
(char? arg) "%c"
(string? arg) "%s"
(int? arg) "%d"
(and (float? arg) (nil? rustf) (== (pasar-a-int arg) arg)) "%.0f"
@ -2545,10 +2544,13 @@
)
(defn replace-groups [string groups]
(cond
(nil? groups) string
(empty? groups) string
:else (replace-groups (clojure.string/replace-first string #"\{:?(.\d+)?\}" (first groups)) (rest groups))
(if (empty? groups)
string
(
replace-groups
(clojure.string/replace-first string #"\{:?(.\d+)?\}" (first groups))
(rest groups)
)
)
)
@ -2559,10 +2561,12 @@
(rest args)
(get-rust-formatters (first args))
)
]
] (if (empty? clojure-fspecifiers)
args
(cons (replace-groups (first args) clojure-fspecifiers) (rest args))
)
)
)
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; DIVIDIR: Recibe dos numeros y devuelve su cociente, manteniendo su tipo.

Loading…
Cancel
Save