-
Notifications
You must be signed in to change notification settings - Fork 29
Open
Description
When generating characters from their ASCII code if we want every char except the controls chars
Controls char: from 0 to 31 and 127
map [choose [range 32; const 127]] Char.chrNon controls char:
choose [
map [range 94] (fun n -> n + 32); (* 32 -> 126 *)
map [range 127] (fun n -> n + 128)] (*128 -> 255*)
]I suggest instead:
choose [range 32 127; range 128 256]Same for alphanumeric, and all sets of contiguous values in ASCII.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels