better exports
parent
5613323df7
commit
04b52e473e
@ -1,9 +1,9 @@
|
|||||||
#lang basic-demo-3
|
#lang basic-demo-3
|
||||||
5 def f(x, y) = x * y
|
10 def div(num, denom) = num / denom
|
||||||
10 a = 1 : a = 5 : b = 10
|
20 x = 5 : y = 10
|
||||||
20 gosub 150
|
30 print x - 4
|
||||||
30 a = 25
|
40 x = 15 : y = 30
|
||||||
40 gosub 150
|
50 print div(y, x)
|
||||||
50 end
|
60 x = 20
|
||||||
150 print a + a + a
|
70 print div((x + x + x), x)
|
||||||
160 return
|
80 export div : export x
|
@ -1,6 +1,7 @@
|
|||||||
#lang br
|
#lang basic-demo-3
|
||||||
(require "sample-export.rkt")
|
10 import math/number-theory
|
||||||
f
|
20 print nth-prime(15)
|
||||||
a
|
30 print prime?(24)
|
||||||
b
|
40 import racket/base
|
||||||
(f a b)
|
50 print max(f(1), f(2), f(5), f(4))
|
||||||
|
60 def f(x) = x + x
|
@ -1,7 +1,5 @@
|
|||||||
#lang basic-demo-3
|
#lang br
|
||||||
10 import math/number-theory
|
(require "sample-export.rkt")
|
||||||
20 print nth-prime(15)
|
div
|
||||||
30 print prime?(24)
|
x
|
||||||
40 import racket/base
|
(div x 10)
|
||||||
50 print max(f(1), f(2), f(5), f(4))
|
|
||||||
60 def f(x) = x + x
|
|
Loading…
Reference in New Issue