• (hijk is a Subseq of Hijack) (abcde is a Subseq of Absconded)

    From HenHanna@HenHanna@dev.null to rec.puzzles,comp.lang.lisp,comp.lang.python on Sun Feb 16 18:54:38 2025
    From Newsgroup: comp.lang.python

    Does this come standard in a library (package) in Python or
    (Gauche)Scheme?

    ________________

    def Subseq(X, Y):
    i,j = 0,0
    while i < len(X) and j < len(Y):
    if X[i] == Y[j]: i += 1
    j += 1
    return i == len(X)


    ___________________ (abcde is a Subseq of Absconded)


    ___________________ (hijk is a Subseq of Hijack)
    --- Synchronet 3.20c-Linux NewsLink 1.2