Sha256: cf35effbe34cb276b39f52929214209ad7dfb3226843f7aed3fb596984b95a30
Contents?: true
Size: 583 Bytes
Versions: 180
Compression:
Stored size: 583 Bytes
Contents
#lang racket (provide grep-file ;; (-> Path-String Regexp (Listof (Pairof Natural String))) ;; Find lines in a file matching a regular expression pattern. ;; Output is a list of pairs containing the number and contents of ;; each matching line. ) ;; ============================================================================= (module+ main ;; Extra challenge: fill in this submodule so that running ;; `racket grep.rkt PATTERN FILE ...` ;; runs grep on each FILE searching for PATTERN, and prints the results ;; to stdout. (printf "Not implemented!\n") )
Version data entries
180 entries across 180 versions & 1 rubygems