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.
9 lines
225 B
Racket
9 lines
225 B
Racket
8 years ago
|
#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))
|