mirror of
https://github.com/fluencelabs/aqua.git
synced 2024-12-04 22:50:18 +00:00
30 lines
392 B
Plaintext
30 lines
392 B
Plaintext
aqua Types
|
||
|
||
alias Top: ⊤
|
||
alias Bottom: ⊥
|
||
|
||
alias Number: u32
|
||
alias String: string
|
||
alias Array: []string
|
||
alias Stream: *string
|
||
alias Option: ?string
|
||
|
||
data Struct:
|
||
a: Number
|
||
b: String
|
||
c: Array
|
||
d: Option
|
||
|
||
service Srv("srv"):
|
||
noop(srvArg: string)
|
||
|
||
ability Ability:
|
||
a: Number
|
||
b: String
|
||
|
||
func nilArrow():
|
||
Srv.noop("")
|
||
|
||
func fullArrow(a: string, b: u32) -> string, u32:
|
||
<- a, b
|