2016 Update
This commit is contained in:
parent
948b86eafa
commit
dcf5d15da3
7965 changed files with 139854 additions and 31002 deletions
|
|
@ -1,7 +1,7 @@
|
|||
#lang racket
|
||||
#lang racket/base
|
||||
|
||||
(define (arithmetic x y)
|
||||
(for ([op '(+ - * / quotient remainder modulo max min gcd lcm)])
|
||||
(displayln (~a (list op x y) " => "
|
||||
((eval op (make-base-namespace)) x y)))))
|
||||
(for ([op (list + - * / quotient remainder modulo max min gcd lcm)])
|
||||
(printf "~s => ~s\n" `(,(object-name op) ,x ,y) (op x y))))
|
||||
|
||||
(arithmetic 8 12)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue