package qinap

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type

Module containing functions for working with strings.

val 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.

val tl : string -> string

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