This is brilliant. Thanks for sharing it. Can I ask why you used the keyword function in the parameter to List.map? There is no pattern matching going on here and it seems that fun would have done the same job, or am I missing something?
function
List.map
fun
List.map (function xs' -> x::xs')
vs
List.map (fun xs' -> x::xs')
I didn't notice that until now, thanks for catching the error. It is now fixed.
Thanks Mohamed. I didn't see it as an error, I wondered if I was going to learn something new about F#. I'm still getting to grips with it myself.
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
This is brilliant. Thanks for sharing it. Can I ask why you used the keyword
function
in the parameter toList.map
? There is no pattern matching going on here and it seems thatfun
would have done the same job, or am I missing something?List.map (function xs' -> x::xs')
vs
List.map (fun xs' -> x::xs')
I didn't notice that until now, thanks for catching the error. It is now fixed.
Thanks Mohamed. I didn't see it as an error, I wondered if I was going to learn something new about F#. I'm still getting to grips with it myself.