mirror of
https://github.com/adambard/learnxinyminutes-docs.git
synced 2024-12-23 17:41:41 +00:00
Updating the PureScript string concatenation eg. (#2686)
https://github.com/purescript/purescript/wiki/Differences-from-Haskell ...says: > Since 0.9.1, the Prelude library does not contain (++) as a second alias for append / (<>) (mappend in Haskell) anymore. So: ``` -- Concatenate "such " ++ "amaze" -- "such amaze" ``` ...should read: ``` -- Concatenate "such " <> "amaze" -- "such amaze" ```
This commit is contained in:
parent
9e8a3d73b6
commit
b37867fe6e
@ -65,7 +65,7 @@ true && (9 >= 19 || 1 < 2) -- true
|
|||||||
"""Hello
|
"""Hello
|
||||||
world""" -- "Hello\nworld"
|
world""" -- "Hello\nworld"
|
||||||
-- Concatenate
|
-- Concatenate
|
||||||
"such " ++ "amaze" -- "such amaze"
|
"such " <> "amaze" -- "such amaze"
|
||||||
|
|
||||||
--
|
--
|
||||||
-- 2. Arrays are Javascript arrays, but must be homogeneous
|
-- 2. Arrays are Javascript arrays, but must be homogeneous
|
||||||
|
Loading…
Reference in New Issue
Block a user