Go ProSign in
Autoplay
Hide playlist

    Imperative Loops (for & while) in Reason

    Nik GrafNik Graf
    1:00

    In functional programming languages map, filter and reduce are often preferred over imperative loops. As stated in the official Reason docs the language creates don't have a preference on whether you should use a loop over these function.

    In Reason we have for as well as while available.

    You must be a Member to view code