The database-like approach to filtering data in lists and associate arrays is done nicely, especially being able use boolean expressions and operators in the same syntax as a list index. The '%' is a count operator, and the '@@' is a token for the content, for example in the code below:
% Employees[@@.Age > 35 && @@.Salary < 70000]
That returns a count of all employees over 35 and making under 70,000$. The syntax IMO has a nice combination of conciseness, expressiveness, and readability.
4 comments
[ 2.9 ms ] story [ 22.7 ms ] threadI always like seeing neat projects in Tcl. Perhaps it's because of the nostalgia of being 13 and hacking away at eggdrops?
https://appspopo.com/nox-app-player/