diff options
author | Emiel van de Laar <gemiel@gmail.com> | 2021-03-22 17:47:52 +0100 |
---|---|---|
committer | Emiel van de Laar <gemiel@gmail.com> | 2021-03-22 17:47:52 +0100 |
commit | 94704901df0c19ec8b190247b0f63fae4ceddf70 (patch) | |
tree | 908ea4436f360ad0ecb93c32b1c7cf12cd5fbc56 | |
parent | 4a5efbf2311b0ca1af33f4b95968a6302f0642eb (diff) |
Cons (:) requires purescript-arrays
-rw-r--r-- | purescript.html.markdown | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/purescript.html.markdown b/purescript.html.markdown index 21f4d63a..eff8fb43 100644 --- a/purescript.html.markdown +++ b/purescript.html.markdown @@ -77,12 +77,12 @@ world""" -- "Hello\nworld" [true, true, false] :: Array Boolean -- [true,true,false] -- [1,2, true, "false"] won't work -- `Cannot unify Int with Boolean` + +-- Requires purescript-arrays (Data.Array) -- Cons (prepend) 1 : [2,4,3] -- [1,2,4,3] --- Requires purescript-arrays (Data.Array) -- and purescript-maybe (Data.Maybe) - -- Safe access return Maybe a head [1,2,3] -- Just (1) tail [3,2,1] -- Just ([2,1]) |