Function
hasPrefix
Test whether a sequence is prefix of another sequence.
hasPrefix(left, right)
hasPrefix(comparator)
Parameters
left
The first sequence.
right
The second sequence, the putative prefix.
comparator
A comparator.
Types: Lexical
Return Values
true if right is a prefix of left, false otherwise.
Remarks
By definition, the whole sequence is a prefix of itself too: hasPrefix("abc", "abc") == true.
SeqAn - Sequence Analysis Library - www.seqan.de