Ruby - how to group by array of objects?

后端 未结 0 981
半阙折子戏
半阙折子戏 2020-12-06 22:32

I am new to ruby and trying to group array of objects. I have below 2 inputs:

Inputs:


DEPT = {
    main_dept1: [\'A\', \'B\', \'C\'],
    main_dept2: [\'D\'         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题