Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个存储地图的值类型变量,但我无法通过提供键来访问这些值:
rascal>a value: ("s":"s") rascal>a["s"] |stdin:///|(2,3,<1,2>,<1,5>): subscript not supported on value at |stdin:///|(2,3,<1,2>,<1,5>) ☞ Advice
如何解析要映射的值以便能够检索我的值?
if (map[str,str] myMap := a) { // do stuff with myMap } else { throw "<a> is not a map?"; }