Skip to main content
Question

Play our NQE Koan Challenge - Group People by Age

  • March 25, 2025
  • 0 replies
  • 33 views

Tyson Henrie
Employee
Forum|alt.badge.img+2

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

 [{ 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://docs.fwd.app/latest/application/reference/nqe/guides/comprehensions/#group-by-qualifier

 

 

Contributions: Unclaimed