import { ReadyType } from "./ready" ; export class Record extends ReadyType { public elements : Map < string , ReadyType > ; constructor ( elements ) { super ( "Record" ) ; this . elements = elements ; } public toString ( ) { const names = [ ] ; this . elements . forEach ( ( value , key ) => { names . push ( key + ": " + value . toString ( ) ) ; } ) ; return "Record[" + names . join ( ", " ) + "]" ; } }