Last active
November 23, 2017 13:21
-
-
Save cgrand/7585acc4f85c1b3664f3319097254a2f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
; with the setting that values are indented by two if they are at the start of a line | |
=> (doseq [w (range 20)] | |
(prn 'width w 'non-strict) | |
(render (best-layout (spans '{1 2 3 (a b) 5 6}) w)) | |
(newline) | |
(prn 'width w 'strict) | |
(render (best-layout (spans '{1 2 3 (a b) 5 6}) w true)) | |
(newline)) | |
width 0 non-strict | |
{1 | |
2, | |
3 | |
(a | |
b), | |
5 | |
6} | |
width 0 strict | |
width 1 non-strict | |
{1 | |
2, | |
3 | |
(a | |
b), | |
5 | |
6} | |
width 1 strict | |
width 2 non-strict | |
{1 | |
2, | |
3 | |
(a | |
b), | |
5 | |
6} | |
width 2 strict | |
width 3 non-strict | |
{1 | |
2, | |
3 (a | |
b), | |
5 | |
6} | |
width 3 strict | |
width 4 non-strict | |
{1 2, | |
3 (a | |
b), | |
5 6} | |
width 4 strict | |
width 5 non-strict | |
{1 2, | |
3 (a | |
b), | |
5 6} | |
width 5 strict | |
width 6 non-strict | |
{1 2, | |
3 (a b), | |
5 6} | |
width 6 strict | |
width 7 non-strict | |
{1 2, | |
3 (a b), | |
5 6} | |
width 7 strict | |
{1 2, | |
3 (a | |
b), | |
5 6} | |
width 8 non-strict | |
{1 2, | |
3 (a b), | |
5 6} | |
width 8 strict | |
{1 2, | |
3 (a | |
b), | |
5 6} | |
width 9 non-strict | |
{1 2, | |
3 (a b), | |
5 6} | |
width 9 strict | |
{1 2, | |
3 (a b), | |
5 6} | |
width 10 non-strict | |
{1 2, | |
3 (a b), | |
5 6} | |
width 10 strict | |
{1 2, | |
3 (a b), | |
5 6} | |
width 11 non-strict | |
{1 2, 3 (a b), | |
5 6} | |
width 11 strict | |
{1 2, | |
3 (a b), | |
5 6} | |
width 12 non-strict | |
{1 2, | |
3 (a b), 5 6} | |
width 12 strict | |
{1 2, | |
3 (a b), | |
5 6} | |
width 13 non-strict | |
{1 2, | |
3 (a b), 5 6} | |
width 13 strict | |
{1 2, | |
3 (a b), | |
5 6} | |
width 14 non-strict | |
{1 2, | |
3 (a b), 5 6} | |
width 14 strict | |
{1 2, | |
3 (a b), 5 6} | |
width 15 non-strict | |
{1 2, | |
3 (a b), 5 6} | |
width 15 strict | |
{1 2, | |
3 (a b), 5 6} | |
width 16 non-strict | |
{1 2, | |
3 (a b), 5 6} | |
width 16 strict | |
{1 2, | |
3 (a b), 5 6} | |
width 17 non-strict | |
{1 2, 3 (a b), 5 6} | |
width 17 strict | |
{1 2, | |
3 (a b), 5 6} | |
width 18 non-strict | |
{1 2, 3 (a b), 5 6} | |
width 18 strict | |
{1 2, | |
3 (a b), 5 6} | |
width 19 non-strict | |
{1 2, 3 (a b), 5 6} | |
width 19 strict | |
{1 2, 3 (a b), 5 6} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment