For base 62 encoding, I need all 62 alphanumeric characters. The F# range operator offers a nice shorthand for this.
let alphaNumericCharacters =
seq {
yield! [|'a'..'z'|]
yield! [|'A'..'Z'|]
yield! [|'0'..'9'|]
} |> Array.ofSeq
This is nice and concise, but I'm greedy. Is there a way of doing this in one line?
let alphaNumericCharacters = Array.concat [| [|'0'..'9'|]; [|'A'..'Z'|]; [|'a'..'z'|] |]
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With