Welcome to the Haskell and Rust Practice Questions repository!
This repository contains practice questions for Haskell and Rust programming languages. It's designed for self-study or as a resource for course review sessions.
-
HaskellPractice: Practice questions for Haskell.
- practice.hs: Contains all the Haskell practice questions.
-
RustPractice: Practice questions for Rust.
- main.rs: Contains all the Rust practice questions.
-
Clone the repository:
git clone https://github.com/PACS-TMU/cps506-review.git
-
Navigate to the directory for the language you want to practice:
cd HaskellPractice # or cd RustPractice
-
Open the
practice.hs
otmain.rs
directory and start practicing!
- Haskell
- In the
/HaskellPractice
directory, runghci
and load thepractice.hs
file by running::load practice.hs
- After loading successfully, run each function with the test cases provided as comments. Make sure your output is as expected.
- In the
- Rust
- In the
/RustPractice
directory, run:rustc main.rs
- Once it compiles with no errors, run:
./main
- This will print each function's test cases, along with your output vs the expected output.
- In the
Contributions are welcome! Feel free to add more practice questions or improve existing ones. Just fork the repository, make your changes, and submit a pull request.
This project is licensed under the GNU License - see the LICENSE file for details.