!7 srecord noeq Entry( O candidate, double score, S comment, Map individualScores) {} cmodule ScoreMatrix > DynObjectTable { start { itemToMap = func(Entry e) -> Map { litorderedmap( "Candidate" := e.candidate, "Score" := formatDouble(e.score, 2), "Comment" := nullIfEmpty(e.comment), "Tests performed" := nullIfZero(l(e.individualScores))) }; } // API Entry newEntry( O candidate, double score, S comment, Map individualScores) { ret Entry(candidate, score, comment, individualScores); } Entry newEntry( O candidate, double score, Map individualScores) { ret Entry(candidate, score, null, individualScores); } }