chickadee » bitstring » bitmatch

(bitmatch binary-data patterns-list else-guard)syntax
  • Match binary-data against the patterns from patterns-list.
  • binary-data may be a bitstring object or a value of any of the following data types: u8vector, string or regular vector.
  • If nothing matches and an else-guard clause was not specified, an exception of type bitstring-match-failure is raised.
  • Else guard is optional.