Erlang Recursive end loop
问题 I just started learning Erlang and since I found out there is no for loop I tried recreating one with recursion: display(Rooms, In) -> Room = array:get(In, Rooms) io:format("~w", [Room]), if In < 59 -> display(Rooms, In + 1); true -> true end. With this code i need to display the content (false or true) of each array in Rooms till the number 59 is reached. However this creates a weird code which displays all of Rooms contents about 60 times (?). When I drop the if statement and only put in