How can I count the number of elements in the values of a dictionary? [on hold]

47
February 12, 2019, at 11:10 PM

I have a a few dictionaries like this

{key:[value1,value2,value3], key2:[value4,value5,value6,value7]}, {key3:[value8,value9], key4:[value10]}

I need a result like

{key : 3 , key2 : 4} {key3 : 2, key4 : 1}
READ ALSO
create a Dynamic mapping for parsing multiple input files to an obj in kotlin

create a Dynamic mapping for parsing multiple input files to an obj in kotlin

Let's say I have a json data that can have different Key names for the same data field

46
How can I split string by a special character and ignore everything inside parentheses?

How can I split string by a special character and ignore everything inside parentheses?

I want to split the string by "/" and ignore "/" inside the outer parentheses

58
Comparing data in hql and return boolean value [on hold]

Comparing data in hql and return boolean value [on hold]

I want to compare data in hql and get boolean values to username variable, below some of my codes

61