Skip to main content

in_scope

Function in_scope 

Source
pub fn in_scope(c: &Challenge, have: &Names) -> bool
Expand description

Whether a lesson applies to a context: unscoped, or one of its scope names occurs in it as a contiguous phrase or identifier (Names::contains). “Answer Guard” needs “answer guard” (or AnswerGuard), never “output” in one sentence and “guard” in another; “Orion” matches a path orion-text/ and OrionConfig; no part of a name is ever dropped for being short.