Standard ml loop troubles
问题 I am setting up a function that will simulate a loop until a condition is met. My overall plan is to use recursion but I am trying to get the basics down first. I got a basic function working using an If statement that is seeing what the value of X is. I plan to use recursion to use X as an counter but I will get to that later. My main concern right now is, it seems I can only do 1 command after the "then" statement. fun whileloop (x,a) = if (x<4) then a+1 else a; So this function works