morsey

Types

pub type Char {
  Dot
  Comma
  Space
  Break
  Invalid(String)
}

Constructors

  • Dot
  • Comma
  • Space
  • Break
  • Invalid(String)
pub type EncodeError {
  InvalidCharacter(String)
}

Constructors

  • InvalidCharacter(String)
pub type Sequence =
  List(Char)

Functions

pub fn decode(symbols: List(Char)) -> String
pub fn encode(text: String) -> Result(List(Char), EncodeError)
pub fn from_string(text: String) -> List(Char)
pub fn main() -> Nil
pub fn to_string(encoded: List(Char)) -> String
Search Document