// Try to put the structure in multiple lines // (works for List and Map) // For other values, defaults to structure() static S structureLines(O data) { if (data instanceof O[]) data = asList((O[]) data); if (data instanceof Collection) { new L l; for (O x : (Collection) data) l.add(structureForUser(x)); ret fromLines(l); } ifclass MultiSet if (data instanceof MultiSet) data = multiSetToMap(data/MultiSet); endif if (data instanceof Map) { new L l; for (O key : ((Map) data).keySet()) { O value = ((Map) data).get(key); l.add(structureForUser(key) + " = " + structureForUser(value)); } ret fromLines(l); } ret structureForUser(data); }