Skip to main content

Hello NQE Enthusiasts,

 

I’ll try to post a new Koan Challenge every two months.

 

Challenge

This task is to take the following table and group people by age.

 

Input

 a{ Name: "Bob", Age: 21 },

  { Name: "Sam", Age: 19 },

  { Name: "Jill", Age: 18 },

  { Name: "Jim", Age: 21 },

  { Name: "Sally", Age: 19 }

 ];

 

Example Result

"{Age: 21, Count: 2}...]

 

Hint

https://fwd.app/docs/nqe/guides/comprehensions/#group-by-qualifier

 

Contributions: Unclaimed

Be the first to reply!

Reply