The example demonstrates the use of Ceylon's powerful type system to define typesafe heterogenous maps, otherwise known as record types.
records.ceylon
defines a tiny library for creating recordskeys.ceylon
defines example typesafe keystest.ceylon
is a runnable function demonstranting the use of the records library
Note that this code is experimental. Note also that due to bug #6602, it does not currently compile on the JVM.
Click here to run this code online