I noticed the syntax on the page https://learnxinyminutes.com/docs/purescript/ is now wrong. [2,3,4]
is an Array, rather than a List:
-- Cons (prepend)
1 : [2,4,3] -- [1,2,4,3]
I checked and last commit was in 2018 https://github.com/adambard/learnxinyminutes-docs/commits/master/purescript.html.markdown . So… PureScript changed a lot in the past years?
not included Prelude? I tried in REPL turned on I need to import Data.Array
first.
I’m unsure how prevalent learnxinyminutes is. The PureScript introduction does appear to be a bit dated. I swiftly updated some bits with the time I had today.
PR is here: https://github.com/adambard/learnxinyminutes-docs/pull/4145
2 Likes
it appears on Google results quite often when I searched about syntaxes as a beginner.
1 Like