Skip to main content
Version: Next

sub_atom/5

Description

sub_atom/5 is a predicate that extracts or checks sub-atoms.

Signature

sub_atom(+Atom, ?Before, ?Length, ?After, ?`sub_atom/5`)

Where:

  • Atom is the source atom.
  • Before is the number of characters before the sub-atom.
  • Length is the length of the sub-atom.
  • After is the number of characters after the sub-atom.
  • sub_atom/5 is the extracted sub-atom.