F# – From string to byte array and back

There’re a number of built-in literal types in F#, and one of the cool things you can do is to get the byte or byte array representation of a char or string using the ‘B’ suffix, the result is the same as Encoding.ASCII.GetBytes:


Pretty cool, eh?

Subscribe to my newsletter and get new contents delivered straight to your inbox :-)