-
-
Notifications
You must be signed in to change notification settings - Fork 192
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
8f8817f
commit be6635e
Showing
7 changed files
with
101 additions
and
47 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,10 @@ | ||
[] | ||
[ | ||
{ | ||
"url": "https://hackage.haskell.org/package/base/docs/Data-List.html", | ||
"description": "Haskell Prelude: Data.List" | ||
}, | ||
{ | ||
"url": "https://www.haskelltutorials.com/guides/haskell-lists-ultimate-guide.html", | ||
"description": "Haskell Lists: The Ultimate Guide" | ||
} | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,36 @@ | ||
# General | ||
# Hints | ||
|
||
- Basic numbers operators are described in the Haskell [GHC.Num module documentation](https://hackage.haskell.org/package/base-4.16.0.0/docs/GHC-Num.html). But you might prefer a more easily digestable [basic introduction.](https://www.tutorialspoint.com/haskell/haskell_basic_operators.htm) | ||
## General | ||
|
||
# Modules and Indentation | ||
- Use the built-in [(linked) list type][list]. | ||
|
||
- [Declaring modules](https://learnyouahaskell.github.io/modules#making-our-own-modules) | ||
- [Indentation rules](https://en.wikibooks.org/wiki/Haskell/Indentation) | ||
## 1. Define a function to return an empty language list | ||
|
||
- The function needs to return `[]`. | ||
|
||
## 2. Define a function to add a language to the list | ||
|
||
- An element can be prepended to a list using `:`. | ||
|
||
## 3. Define a function to remove a language from the list | ||
|
||
- Haskell [provides a function][tail] to return a list with the first item removed. | ||
|
||
## 4. Define a function to return the first item in the list | ||
|
||
- HaskellHaskell [provides a function][head] to get the first item from a list. | ||
|
||
## 5. Define a function to return how many languages are in the list | ||
|
||
- Haskell [provides a function][length] to count the length of a list. | ||
|
||
## 6. Define a function to determine if the list includes a functional language | ||
|
||
- Your function should return a boolean value indicating whether `"Haskell"` is a member of the list. | ||
Haskell [provides a function][elem] to test list membership. | ||
|
||
[list]: https://hackage.haskell.org/package/base/docs/Data-List.html | ||
[head]: https://hackage.haskell.org/package/base/docs/Prelude.html#v:head | ||
[tail]: https://hackage.haskell.org/package/base/docs/Prelude.html#v:tail | ||
[elem]: https://hackage.haskell.org/package/base/docs/Prelude.html#v:elem | ||
[length]: https://hackage.haskell.org/package/base/docs/Prelude.html#v:length |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters