Press CTRL+C or CMD+C to copy the selected text and close this dialog.
1 people like it.
Like the snippet!
Recursive function for converting byte array to binary string
let convertToBinaryString bytes =
let rec loop (acc : string) (lst : byte list) =
match lst with
|  -> acc
| _ -> loop (acc + (Convert.ToString(lst.Head, 2).PadLeft(8, '0'))) lst.Tail
loop "" (Array.toList bytes)
This web site is created using F# and Suave web server. It is hosted on
Azure and the source code is on GitHub. Contributions
The first version of fssnip.net has been created by
@tomaspetricek back in 2010.
This web site is a new, open-source and contribution-friendly version.