Learnxinyminutes docs outdated?

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?

That is, in fact, not outdated. See https://pursuit.purescript.org/packages/purescript-arrays/6.0.0/docs/Data.Array#v:(:).

1 Like

not included Prelude? I tried in REPL turned on I need to import Data.Array first.

Yes, that’s correct.

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