Skip to content

Instantly share code, notes, and snippets.

@wilbowma
Last active January 26, 2022 04:22
Show Gist options
  • Select an option

  • Save wilbowma/e26ded8af82b8b2e9c2e327b01547617 to your computer and use it in GitHub Desktop.

Select an option

Save wilbowma/e26ded8af82b8b2e9c2e327b01547617 to your computer and use it in GitHub Desktop.
#lang sweet-exp racket
require (rename-in racket/base [+ r:+])
define +(e . rest)
cond
string? e
apply string-append e rest
number? e
apply r:+ e rest
{"Hello, " + "world." + " What have you done." + " What did you do to my parens?!"}
#lang racket
(require (rename-in racket/base [+ r:+]))
(define (+ e . rest)
(cond
[(string? e)
(apply string-append e rest)]
[(number? e)
(apply r:+ e rest)]))
("Hello, " . + . "world.")
@tylerhasman
Copy link

Amazing

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment