indefinite_article_only

Macro indefinite_article_only 

Source
macro_rules! indefinite_article_only {
    ($word:literal) => { ... };
    ($($word:literal),+) => { ... };
}
Expand description

Returns only the article related to the first word (also accepts a list of input string)

ยงExamples

use indefinite::indefinite_article_only;

assert_eq!(indefinite_article_only!("apple"), "an");
assert_eq!(indefinite_article_only!("apple","pear"), ["an", "a"]);