Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Delete some now-unused modules #553

Merged
merged 1 commit into from
Aug 17, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 13 additions & 11 deletions collection/entry.rkt
Original file line number Diff line number Diff line change
Expand Up @@ -27,17 +27,17 @@
[grouping (-> reducer? (transducer/c entry? entry?))]))


(require racket/contract/combinator
(require guard
racket/contract/combinator
racket/match
racket/sequence
racket/set
rebellion/base/impossible-function
rebellion/base/option
rebellion/base/variant
rebellion/collection/list
rebellion/private/contract-projection
guard
rebellion/private/static-name
rebellion/private/total-match
rebellion/streaming/reducer
rebellion/streaming/transducer
rebellion/type/record
Expand All @@ -46,7 +46,6 @@

(module+ test
(require (submod "..")
racket/match
rackunit
rebellion/base/option))

Expand Down Expand Up @@ -88,11 +87,11 @@


(define (mapping-keys key-function)
(mapping (λ/match ((entry k v)) (entry (key-function k) v))))
(mapping (λ (e) (match e [(entry k v) (entry (key-function k) v)]))))


(define (mapping-values value-function)
(mapping (λ/match ((entry k v)) (entry k (value-function v)))))
(mapping (λ (e) (match e [(entry k v) (entry k (value-function v))]))))


(define (indexing key-function) (bisecting key-function values))
Expand All @@ -108,14 +107,16 @@

(define (append-mapping-keys key-sequence-maker)
(append-mapping
(λ/match ((entry k v))
(sequence-map (λ (k) (entry k v)) (key-sequence-maker k)))))
(λ (e)
(match-define (entry k v) e)
(sequence-map (λ (k2) (entry k2 v)) (key-sequence-maker k)))))


(define (append-mapping-values value-sequence-maker)
(append-mapping
(λ/match ((entry k v))
(sequence-map (λ (v) (entry k v)) (value-sequence-maker v)))))
(λ (e)
(match-define (entry k v) e)
(sequence-map (λ (v2) (entry k v2)) (value-sequence-maker v)))))


(module+ test
Expand Down Expand Up @@ -309,8 +310,9 @@
(make-transducer
#:starter (λ () (variant #:consume (make-empty-groups)))
#:consumer
/match (g (entry k v))
(λ (g e)
(guarded-block
(match-define (entry k v) e)
(define next (groups-insert g k v #:reducer value-reducer))
(guard (groups? next) #:else
(variant #:emit next))
Expand Down
5 changes: 0 additions & 5 deletions filter.rkt

This file was deleted.

43 changes: 0 additions & 43 deletions private/filter.rkt

This file was deleted.

97 changes: 0 additions & 97 deletions private/guarded-block.rkt

This file was deleted.

27 changes: 0 additions & 27 deletions private/struct-definition-util.rkt

This file was deleted.

38 changes: 0 additions & 38 deletions private/total-match.rkt

This file was deleted.