has_pangram: Check to see if a set of words has a pangram

Description Usage Arguments Value See Also Examples

View source: R/word_finders.R

Description

Given a list of letters and a dictionary, is there a pangram?

Usage

1
has_pangram(game_letters, dictionary = normal)

Arguments

game_letters

A character vector of letters in the format of c("l", "e", "t", "r", "s") or "letrs"

dictionary

A character list of words—defaults to the normal list from the package.

Value

Logical: TRUE if a pangram exists; FALSE if not.

See Also

find_all_words

Examples

1
2
3
4
has_pangram(c("l", "e", "t", "r", "s")) # yes
has_pangram(c("d", "r", "g", "t", "i")) # none
# or:
has_pangram("leters")

jdbest/holoalphabetic documentation built on Feb. 10, 2022, 10:11 p.m.