You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

47 lines
736 B

## pangram
### Instructions
Create a **function** named `is_pangram` which returns `true` if the given string is a pangram.
3 years ago
A pangram is a sentence which uses every letter of the alphabet at least once.
Example: "The quick brown fox jumps over the lazy dog."
### Expected functions
```rust
3 years ago
pub fn is_pangram(s: &str) -> bool {
}
```
### Usage
Here is a program to test your function.
```rust
3 years ago
use pangram::*;
fn main() {
println!(
"{}",
is_pangram("the quick brown fox jumps over the lazy dog!")
);
println!("{}", is_pangram("this is not a pangram!"));
}
```
3 years ago
And its output:
```console
$ cargo run
true
false
$
```
### Notions
- [patterns](https://doc.rust-lang.org/book/ch18-00-patterns.html)