import strutils import sequtils import bigints # type: BigInt # let x = initBigInt("810896098877923596128062174904361421866219158") let file_path = "./data/stripped" proc startsWithSubsequence(xs: seq[string], ys: seq[string]): bool = if xs.len == 0: return true elif ys.len == 0: return false elif xs[0] == ys[0]: return startsWithSubsequence(xs[1.. 3: let seq = split(line, ",") let l = seq.len let nums = seq[1..(l-2)] # .map(proc (x: string): BigInt = initBigInt(x)) if startsWithSubsequence(start, nums): seqs.add(nums) i = i + 1 f.close() echo seqs