# \#generics

**URL:** https://racket.discourse.group/tag/generics/90.md

[Latest](https://racket.discourse.group/latest.md) · [Categories](https://racket.discourse.group/categories.md) · [Tags](https://racket.discourse.group/tags.md)

---

## [Partially override gen:custom-write for the display case only](https://racket.discourse.group/t/partially-override-gen-custom-write-for-the-display-case-only/3616)

<div class="topic-metadata">

**Author:** [@rvdalen](https://racket.discourse.group/u/rvdalen)\
**Replies:** 2\
**Last updated:** [March 11, 2025, 4:32am UTC](https://racket.discourse.group/t/partially-override-gen-custom-write-for-the-display-case-only/3616 "2025-03-11T04:32:59Z")

</div>

I am trying to customize the printing of a struct for the display case to something that displays more user-friendly but I am not sure how to express: "do the default action for print and write cases". Here is the code …

---

## [How to attach contract on generic function?](https://racket.discourse.group/t/how-to-attach-contract-on-generic-function/3297)

<div class="topic-metadata">

**Author:** [@Andy](https://racket.discourse.group/u/Andy)\
**Replies:** 3\
**Last updated:** [November 6, 2024, 4:07pm UTC](https://racket.discourse.group/t/how-to-attach-contract-on-generic-function/3297 "2024-11-06T16:07:57Z")

</div>

Hello! I'm trying to use contract with generic functions. However, the code doesn't work as expected: #lang racket (require racket/generic) (define-generics g (g-func g)) (struct s () #:methods gen:g \[(define/cont…

---

## [Pratt parsing is so easy, it should be criminal!](https://racket.discourse.group/t/pratt-parsing-is-so-easy-it-should-be-criminal/3197)

<div class="topic-metadata">

**Author:** [@bakgatviooldoos](https://racket.discourse.group/u/bakgatviooldoos)\
**Replies:** 0\
**Last updated:** [October 3, 2024, 9:04pm UTC](https://racket.discourse.group/t/pratt-parsing-is-so-easy-it-should-be-criminal/3197 "2024-10-03T21:04:19Z")

</div>

Hi, Racket Discourse. I recently had to implement a parser for converting infix to prefix notation, with the purpose of converting user-provided queries into an expression that could be evaled to produce the desired res…

---

## [Implementing generic interface method outside of interface definition](https://racket.discourse.group/t/implementing-generic-interface-method-outside-of-interface-definition/2621)

<div class="topic-metadata">

**Author:** [@rvdalen](https://racket.discourse.group/u/rvdalen)\
**Replies:** 0\
**Last updated:** [December 27, 2023, 8:59am UTC](https://racket.discourse.group/t/implementing-generic-interface-method-outside-of-interface-definition/2621 "2023-12-27T08:59:56Z")

</div>

Hi Racketeers, I am learning Racket and busy working through Generic Interfaces. I was wondering if it is possible to provide an implementation for a generic interface outside of the (struct) form definition. For exam…

---

## [Introducing Seq: A generic, isomorphic sequence library](https://racket.discourse.group/t/introducing-seq-a-generic-isomorphic-sequence-library/816)

<div class="topic-metadata">

**Author:** [@countvajhula](https://racket.discourse.group/u/countvajhula)\
**Replies:** 10\
**Last updated:** [March 22, 2022, 6:42pm UTC](https://racket.discourse.group/t/introducing-seq-a-generic-isomorphic-sequence-library/816 "2022-03-22T18:42:00Z")

</div>

Hi all, If you use Alexis King's Generic Collections (data/collection) library for generic sequences and collections, you may be interested in this package I put up recently. Ever since I discovered data/collection, wh…
