user3803936
user3803936

Reputation: 3

How To Use The <- Operator

     let mutable steve = 1348; 
     let steve <- 202;
printfn "%d" steve;
System.Console.ReadKey();

I cannot simply get the num. 202 to print out in the Console. What am I dpoing wrong anyway?

Upvotes: 1

Views: 62

Answers (1)

Foole
Foole

Reputation: 4850

You don't need the 2nd "let", nor the semicolons.

let mutable steve = 1348
steve <- 202
printfn "%d" steve
System.Console.ReadKey() |> ignore

Upvotes: 5

Related Questions