pona/compound
Types
pub type Compound {
Compound(word: String, definitions: Dict(String, Int))
}
Constructors
-
Compound(word: String, definitions: Dict(String, Int))
pub type CompoundError {
DynamicError(dynamic.Dynamic)
WordNotFound(String)
}
Constructors
-
DynamicError(dynamic.Dynamic)
-
WordNotFound(String)
pub type CompoundFetcher {
CompoundFetcher(english: String)
}
Constructors
-
CompoundFetcher(english: String)
Functions
pub fn compound(english: String) -> CompoundFetcher
pub fn fetch(
fetcher: CompoundFetcher,
) -> Result(Compound, CompoundError)
pub fn get_definitions(compound: Compound) -> Dict(String, Int)