mirror of
https://github.com/fluencelabs/aqua.git
synced 2024-12-04 22:50:18 +00:00
18 lines
299 B
Plaintext
18 lines
299 B
Plaintext
|
module CallArrow
|
||
|
|
||
|
export order
|
||
|
|
||
|
|
||
|
service Experiment("exp"):
|
||
|
get_num: -> u32
|
||
|
get_arr: -> []string
|
||
|
|
||
|
--func get_num() -> u32:
|
||
|
-- <- Experiment.get_num()
|
||
|
|
||
|
--func by_idx() -> string:
|
||
|
-- x <- Experiment.get_arr()
|
||
|
-- <- x[Experiment.get_num()+get_num()]
|
||
|
|
||
|
func order() -> i32:
|
||
|
<- (5-2)*2-10+(3-1)*5
|