Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save ailabs-software/453b9adbff1d85c02f3020952f556523 to your computer and use it in GitHub Desktop.
Save ailabs-software/453b9adbff1d85c02f3020952f556523 to your computer and use it in GitHub Desktop.
// Solved by re-creating the outer maps so the inner maps could be cast.
final results = new List< Map<Object, Map<Object, num> > >();
for (final value in windowValues)
{
Map<Object, Map<Object, num> > outerMap =
new Map<Object, Map<Object, num> >.fromEntries(
(value as Map).entries.map( (entry) => new MapEntry<Object, Map<Object, num> >(entry.key, (entry.value as Map).cast<Object, num>() ) )
);
results.add(outerMap);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment