package qinap

  1. Overview
  2. Docs

Module Qinap.Ext_stringSource

Module containing functions for working with strings.

Sourceval hd : string -> char option

hd s returns the first character of the string s. Wraps its result in an option type, to avoid raising exceptions.

Sourceval tl : string -> string

tl s returns s with its first character removed. If applied to the empty string, tl result the empty string.