Fundamental Capstoen Ex 1.2

https://learninghub.kx.com/forums/topic/fundamental-capstoen-ex-1-2

When I call my showTableSummary function is gives me a mismatched type error.

It was working before not sure how to fix it. This is my code for it:

{
tableNames: tables;
tableSummary: ()!();
// Initialize an empty dictionary

{tableSummary: count get x} each tableNames;
// get retrieves data from the table
// use tableSummary: to assign value to key x

tableSummary
// Return the dictionary
}

Hi ,

Here are some hints to help simplify your function:

count each `. tables - returns the number of rows in each table

list1 ! list2 - joins these two lists together to create a dictionary

If you are still stuck let me know,

Megan