You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
beautiful-racket/beautiful-racket-demo/basic-demo-2/expr.rkt

9 lines
225 B
Racket

#lang br
(provide (matching-identifiers-out #rx"^b-" (all-defined-out)))
(define (b-sum . nums) (apply + nums))
(define (b-num-expr expr)
(if (integer? expr) (inexact->exact expr) expr))
(define (b-negative num) (- num))