Source File
subseq.go
Belonging Package
src.elv.sh/pkg/strutil
package strutilimport// HasSubseq determines whether s has t as its subsequence. A string t is a// subsequence of a string s if and only if there is a possible sequence of// steps of deleting characters from s that result in t.func (, string) bool {for , := range {:= strings.IndexRune(, )if == -1 {return false}= [+len(string()):]}return true}
The pages are generated with Golds v0.2.8-preview. (GOOS=darwin GOARCH=arm64)