You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
You encounter this error (in chapter 2) before the unit type is introduced. Introduce the underscore binding to which you can assign values, you do not care about. This will solve the compiler error.
Also better explain why this is a compilation error in the first place. Explain the term toplevel expression.
The text was updated successfully, but these errors were encountered:
I found a quick solution is assigning the result to a variable, then the error will be disappeared, like this
let x = Js.Array.map(tupleToString, languagesAndAuthors)
You encounter this error (in chapter 2) before the unit type is introduced. Introduce the underscore binding to which you can assign values, you do not care about. This will solve the compiler error.
Also better explain why this is a compilation error in the first place. Explain the term toplevel expression.
The text was updated successfully, but these errors were encountered: