mirror of
https://github.com/fluencelabs/aqua.git
synced 2025-03-15 11:40:50 +00:00
16 lines
406 B
Plaintext
16 lines
406 B
Plaintext
aqua StreamMapTest declares *
|
|
|
|
export testGetFunc, Srv
|
|
|
|
service Srv("baaa"):
|
|
g() -> string
|
|
|
|
func testGetFunc() -> []string, []string, []string, u32:
|
|
streamMap: %string
|
|
key = "key"
|
|
resEmpty = streamMap.get(key)
|
|
streamMap <<- key, "first value"
|
|
resFirst = streamMap.get(key)
|
|
streamMap <<- key, "second value"
|
|
resSecond = streamMap.get(key)
|
|
<- resEmpty, resFirst, resSecond, resSecond.length |