2024-06-06 11:24:47 +07:00
|
|
|
aqua StreamMapTest declares *
|
2024-01-09 19:31:37 +03:00
|
|
|
|
2024-06-07 15:38:37 +07:00
|
|
|
export testGetFunc, Srv
|
2024-02-20 15:52:54 +03:00
|
|
|
|
2024-06-07 15:38:37 +07:00
|
|
|
service Srv("baaa"):
|
|
|
|
g() -> string
|
2024-01-11 11:00:32 +03:00
|
|
|
|
2024-06-06 11:24:47 +07:00
|
|
|
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)
|
2024-06-07 15:38:37 +07:00
|
|
|
<- resEmpty, resFirst, resSecond, resSecond.length
|