It was very difficult for me to find a simple indent pointer in F #. Basically, I wonder what rule is for indenting outputs with multiple lines. There is no problem in C # since spaces are not taken into account. Although I can write F # code according to my intuition, and it works, I really want to know what a rule is for breaking one operator into several lines. I write how
printfn "%d" 1
It works as expected.
And if I write them in one column, something will go wrong.
> printfn "%A%A" 1 [];; > //nothing is returned... and no error in this case
I want to confirm the basic rule for this. It is a little annoying when you cannot be sure what you are doing.
Thanks in advance
I just tried another case
List.iter (printfn "%d") [1..10];;
And he prints from 1 to 10. Why not
List.iter ((printfn "%d") [1..10]);;
source share