very new kotlin , working on problem requires me take these values parameters function
( starting = "begin", target = "end", edges = listof( mapof("start" "x", "end" "y", "distance" 25) ) } ive got first 2 fine list of maps confusing me.
a(starting: string, target: string, edges: listof(mapof(x,y,z)){} thanks
you should declare edges parameter as
edges: list<map<string, any>> the first type parameter of map type of keys, , second type of values in map.
any type of map values required because you're mixing ints , strings values.
Comments
Post a Comment