Created
December 15, 2016 22:29
-
-
Save mwolicki/d1f9086732c5b8b00adaef47cbd777fd to your computer and use it in GitHub Desktop.
This file contains hidden or 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
#nowarn "9" | |
let mutate (txt:string) : unit = | |
use ch = fixed txt | |
for i = 0 to txt.Length - 1 do | |
Microsoft.FSharp.NativeInterop.NativePtr.set ch i 'z' | |
let text = "abcd" | |
printfn "%s" text | |
mutate text | |
printfn "%s" text |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment