the goal is to Write a function that, given an integer between 1 and 12 evaluates to the name of the related month (1->January, etc.) Else, it may evaluate to "Incorrect month number". This is my code:
list = ["Jan","Feb","Mar","April", "May", "Jun","Jul","Aug","Sep","Oct","Nov","Dec"]
month x = if x<13 && x>0
then x = list !! (x-1)
else "Not a month"
this is the error msg: parse error on input "="
Many thanks for your help
||would in fact change the semantics and generate errors. Furthemore the error is not with thex =on the first line, but the one on the second line.