mirror of
https://github.com/macocianradu/RosettaHaskellCompiler.git
synced 2026-03-18 21:10:07 +00:00
Working generation, need to add list functions
This commit is contained in:
@@ -207,4 +207,15 @@ func EuropeanOption:
|
||||
option Contract (1..1)
|
||||
|
||||
assign-output option:
|
||||
MkGet(Perhaps(endDate,contract))
|
||||
MkGet(Perhaps(endDate,contract))
|
||||
|
||||
func AmericanOption:
|
||||
inputs:
|
||||
startDate string (1..1)
|
||||
endDate string (1..1)
|
||||
contract Contract (1..1)
|
||||
output:
|
||||
option Contract (1..1)
|
||||
alias opt: MkAnytime(Perhaps(endDate,contract))
|
||||
assign-output option:
|
||||
MkThereafter(MkGet (MkTruncate(startDate,opt)),opt)
|
||||
Reference in New Issue
Block a user