Keyboard

↓ ↑
move between the rows you can see
→
open a feature, then step into it
←
close a feature, or step out to the one above
Enter
go to the page in focus
Tab
the same rows, plus everything else on the page
/
search the whole report
m
open or close the navigation drawer
Esc
leave the search box, or close the drawer
?
this list

Keeps every written set element when keeping quotes

All 6 scenarios hold

These rules cover one cell value: strings, quoting, the three collection forms, and the errors a malformed value raises. The three collection forms are a list, a set, and a map.

Keeping quotes is the mode for a formatter, which must keep the author's text. In that mode a set comes back as a WrittenSet: each element as written, in order, with a repeated element kept. Without kept quotes a set holds each value once, whatever its quoting.

expected outcome broken scenario
ScenarioInputDiscarding quotes?Keeping quotes?
Set with unquoted string{a}
  • a
  • a
Set with double quoted string{"a"}
  • a
  • "a"
Set with single quoted string{'a'}
  • a
  • 'a'
Repeated element{a, a, b}
  • a
  • b
  • a
  • a
  • b
Repeated element in another quoting{a, 'a'}
  • a
  • a
  • 'a'
Empty set{}{}[]