Last active
December 17, 2015 02:28
-
-
Save davidgrenier/5535481 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let datum = "toalla" | |
let width = 99 | |
System.String(datum |> Seq.truncate width |> Seq.toArray) | |
|> sprintf "%-*s" width |
Author
davidgrenier
commented
May 7, 2013
let writeField width =
Seq.truncate width >> Seq.toArray
>> fun xs -> System.String xs
>> sprintf "%-*s" width >> stream.Write
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment