https://github.com/theodesp/remove-duplicates
Removes consecutive elements from a list in Racket/Sheme
https://github.com/theodesp/remove-duplicates
racket scheme
Last synced: about 1 year ago
JSON representation
Removes consecutive elements from a list in Racket/Sheme
- Host: GitHub
- URL: https://github.com/theodesp/remove-duplicates
- Owner: theodesp
- License: mit
- Created: 2018-08-31T15:56:57.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2018-08-31T15:58:35.000Z (almost 8 years ago)
- Last Synced: 2025-02-12T09:39:11.706Z (over 1 year ago)
- Topics: racket, scheme
- Language: Racket
- Size: 2.93 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# remove-duplicates
Removes concecutive duplicates from a list in Racket/Scheme
Example
--
```racket
#lang racket
(require "remove-duplicates.rkt")
(remove-consecutive-duplicates '(1 2 1 1 3 3) ) ; '(1 2 1 3)
(remove-consecutive-duplicates 1 ) ; will raise contract violation
```
License
---
MIT License © 2018 Theo Despoudis