package accessor_base
Module Accessor_base.StringSource
Source
val list :
(_,
Base.char Base.list,
Base.string,
[< Accessor_base__.Import.isomorphism ])
Accessor.tAccess the characters in a string as a list.
Source
val reversed :
(_, Base.string, Base.string, [< Accessor_base__.Import.isomorphism ])
Accessor.tAccess a reversed version of a string.
Access each character in a string.
Source
val eachi :
(Base.int * _, Base.char, Base.string, [< Accessor_base__.Import.many ])
Accessor.Indexed.tThe indexed version of each adds the numeric index of each character accessed to the index.
Source
val prefixed :
Base.string ->
(_, Base.string, Base.string, [< Accessor_base__.Import.variant ]) Accessor.tAccess the suffix of a string that begins with the given prefix, or nothing if the string has a different prefix.
Source
val suffixed :
Base.string ->
(_, Base.string, Base.string, [< Accessor_base__.Import.variant ]) Accessor.tAccess the prefix of a string that ends with the given suffix, or nothing if the string has a different suffix.
Source
val conv :
(module Base.Stringable.S with type t = 'a) ->
(_, 'a, Base.string, [< Accessor_base__.Import.variant ]) Accessor.tAccess the string converted to the given type, or access nothing if conversion fails. The well behavedness of this accessor just depends on the Stringable argument.
Source
val conv_strict :
(module Base.Stringable.S with type t = 'a) ->
(_, 'a, Base.string, [< Accessor_base__.Import.isomorphism ]) Accessor.tAccess the string converted to the given type, raising if conversion fails. The well behavedness of this accessor just depends on the Stringable argument.