Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
13
Task/Safe-addition/Transd/safe-addition.transd
Normal file
13
Task/Safe-addition/Transd/safe-addition.transd
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
#lang transd
|
||||
|
||||
MainModule : {
|
||||
a: 1.2,
|
||||
b: 0.03,
|
||||
|
||||
safeAdd: (λ d Double() e Double()
|
||||
(ret [(decr (+ d e)), (incr (+ d e))])),
|
||||
|
||||
_start: (λ
|
||||
(lout "(+ " a " " b ") is in the range: " prec: 20 (safeAdd a b))
|
||||
)
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue