Skip to content

Katas / TDD Exercises created for practicing Rust FP concepts

Notifications You must be signed in to change notification settings

vijayksingh/Rust-Kata

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Rust Kata

Description

This is a kata to learn Rust. Tried to mimic rustlings. This is to pick up rust syntax and concepts (iterator and vector methods).

Methods covered:

  • map
  • flat_map
  • filter
  • collect
  • iter
  • for_each
  • fold

How to use

  1. Clone this repo
  2. Run RUSTFLAGS="--allow dead_code" cargo tests to run all tests

Possible improvements

  • Add more tests
  • Add more exercises (reduce is missing)
  • Cover standard library
    • Sequence (Vec, VecDeque, LinkedList)
    • Maps (HashMap, BTreeMap)
    • Sets (HashSet, BTreeSet)
    • Misc (BinaryHeap)

Resources

Visit https://practice.rs/ for similar exercises on core rust concepts.

About

Katas / TDD Exercises created for practicing Rust FP concepts

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages