/diamond-in-the-rust

My solution to the Exercism.org "Diamond" exercise.

Primary LanguageRust

Diamond

This library provides a function which produces an ASCII-art diamond using all characters up to the given character. It is my solution to the Exercism.org "Diamond" exercise.

Usage

See tests for usage examples, use cargo test to run tests.

Concepts reviewed

  • .repeat()
  • .chain()