Skip to main content

auto-coerce

function

babashka.cli/auto-coerce

(auto-coerce [s])
Auto-coerces `s` to data. Does not coerce when `s` is not a string. If `s`: * is `true` or `false`, it is coerced as boolean * starts with number, it is coerced as a number (through `edn/read-string`) * starts with `:`, it is coerced as a keyword (through `parse-keyword`)

No examples yet. Be the first to add one!

Categories