Rob Rix
|
4592bb89e9
|
Move the supporting everything-is-asymmetrical definitions to the relevant case.
|
2016-05-18 15:28:47 -04:00 |
|
Rob Rix
|
95262b5eba
|
These aren’t documentation comments.
|
2016-05-18 14:55:31 -04:00 |
|
Rob Rix
|
39dfeab8e7
|
Take lines one at a time before asymmetrically-intersecting symmetrical children.
|
2016-05-18 13:00:39 -04:00 |
|
Rob Rix
|
2b6ff86e7e
|
Merge pull request #559 from github/weekly-2016-05-16
Add notes from our inaugural weekly meeting.
|
2016-05-18 10:40:36 -04:00 |
|
Rob Rix
|
1eac6d1302
|
We can simplify the symmetry test to isThese .
|
2016-05-18 09:55:52 -04:00 |
|
Rob Rix
|
7f59121565
|
Merge branch 'master' into cofree-and-bifunctors-sitting-in-a-tree-a-l-i-g-n-edly
|
2016-05-18 09:52:20 -04:00 |
|
Josh Vera
|
3b7f6194ea
|
Merge branch 'master' into weekly-2016-05-16
|
2016-05-18 09:16:06 -04:00 |
|
Rob Rix
|
feef0e46b9
|
intersects returns its result in the union of the shapes of ranges and line , not in the intersection of their shapes.
|
2016-05-17 16:41:01 -04:00 |
|
Rob Rix
|
249c417ba8
|
Only return lines when we have asymmetrical children on that side.
|
2016-05-17 16:39:15 -04:00 |
|
Rob Rix
|
e7e948e684
|
Add a wrapper for lineAndRemaining which takes a predicate.
|
2016-05-17 16:38:49 -04:00 |
|
Rob Rix
|
8c55ba57c6
|
The non-overlapping intersection case has the same shape as the ranges, not as the line.
|
2016-05-17 15:57:23 -04:00 |
|
Rob Rix
|
eeab8580ff
|
< != >
|
2016-05-17 15:57:18 -04:00 |
|
Rob Rix
|
0b45e06c91
|
Implement intersectsRange in terms of intersectionRange (i.e. correctly).
|
2016-05-17 15:31:46 -04:00 |
|
Rob Rix
|
d4618e486c
|
Compute the intersection of two ranges.
|
2016-05-17 15:20:51 -04:00 |
|
Rob Rix
|
7cfdeff5e5
|
Intersections with empty children have the same shape as the ranges.
|
2016-05-17 15:04:09 -04:00 |
|
Rob Rix
|
b09abb7f10
|
Extract getRange to the top level.
|
2016-05-17 12:22:21 -04:00 |
|
Rob Rix
|
11bbde744a
|
Fix a shadowing error.
So maybe I shouldn’t be so comfortable with shadowing after all.
|
2016-05-17 12:18:47 -04:00 |
|
Rob Rix
|
5f481de057
|
Rename symmetricalChildren (since only the first, if any, is guaranteed to be symmetrical).
|
2016-05-17 12:13:14 -04:00 |
|
Rob Rix
|
363a96c527
|
Note a case we want to handle correctly.
|
2016-05-17 12:11:46 -04:00 |
|
Rob Rix
|
ef9cf21d03
|
Only process asymmetrical intersecting children.
|
2016-05-17 12:08:22 -04:00 |
|
Rob Rix
|
8ef363713e
|
Split the intersecting children into asymmetrical & symmetrical sublists.
|
2016-05-17 12:01:31 -04:00 |
|
Rob Rix
|
a380ae2147
|
Rename lines to children .
|
2016-05-16 14:46:23 -04:00 |
|
Rob Rix
|
e3d6cc9037
|
Drop empty children.
Fixes an issue where asymmetrical children were not being collected
into the top-level parent branch.
|
2016-05-16 13:26:09 -04:00 |
|
Rob Rix
|
2cbefee68b
|
Don’t reprocess the nonintersecting split-off first lines.
|
2016-05-16 12:57:01 -04:00 |
|
Rob Rix
|
e40434f476
|
Test that we align insertions into empty branches without losing nodes.
|
2016-05-16 12:37:13 -04:00 |
|
Rob Rix
|
ba7988454b
|
Add notes from our inaugural weekly meeting.
|
2016-05-16 11:31:44 -04:00 |
|
Rob Rix
|
6f819341ab
|
Test that we align insertions which span the entirety of the thing.
|
2016-05-16 10:54:56 -04:00 |
|
Rob Rix
|
8f05beb023
|
Spacing for alignment.
|
2016-05-16 10:41:10 -04:00 |
|
Rob Rix
|
555fd7d124
|
Correct the inverted boolean.
|
2016-05-14 01:30:49 -04:00 |
|
Rob Rix
|
65827f17ac
|
Correct the docs of why we pick left first.
|
2016-05-14 01:19:04 -04:00 |
|
Rob Rix
|
9cea134ee6
|
Call into alignBranch for Fixed nodes too.
|
2016-05-13 23:24:30 -04:00 |
|
Rob Rix
|
2008b63c17
|
Compute the maximum value in each element correctly.
|
2016-05-13 18:44:27 -04:00 |
|
Rob Rix
|
9567c44c57
|
Guarantee non-empty by prepending.
|
2016-05-13 18:38:19 -04:00 |
|
Rob Rix
|
c02e6c80a5
|
Pretty all the diffs.
|
2016-05-13 18:27:38 -04:00 |
|
Rob Rix
|
a5e11db66d
|
Pull align out to the top level.
|
2016-05-13 18:25:42 -04:00 |
|
Rob Rix
|
9b398ebd99
|
Avoid using head .
|
2016-05-13 18:17:01 -04:00 |
|
Rob Rix
|
c0a1d5b14b
|
Only advance past lines we’ve actually taken.
|
2016-05-13 18:11:06 -04:00 |
|
Rob Rix
|
ebea3e1542
|
Align asymmetrically.
|
2016-05-13 18:07:41 -04:00 |
|
Rob Rix
|
97b8b7d4f8
|
lineAndRemaining takes its parameters in the opposite order.
|
2016-05-13 17:56:34 -04:00 |
|
Rob Rix
|
19870ee871
|
Add a function to produce a line and return the remaining lines.
|
2016-05-13 17:53:24 -04:00 |
|
Rob Rix
|
abd6221696
|
Pass headRanges to alignChildren instead of closing over it.
|
2016-05-13 17:42:17 -04:00 |
|
Rob Rix
|
de254b953f
|
Split up lines in the asymmetrical cases in alignChildren.
|
2016-05-13 17:38:54 -04:00 |
|
Rob Rix
|
b19f6fe81a
|
Split the first-line-to-Both-terms stuff into a function.
|
2016-05-13 17:34:28 -04:00 |
|
Rob Rix
|
0f2467e82a
|
Handle the asymmetric cases disjointly.
|
2016-05-13 17:32:31 -04:00 |
|
Rob Rix
|
25831c5685
|
Test the intersections by side explicitly.
|
2016-05-13 17:31:21 -04:00 |
|
Rob Rix
|
312d9aec26
|
Use the existing definition of intersects .
|
2016-05-13 17:29:37 -04:00 |
|
Rob Rix
|
eecca41524
|
Correct the type of children.
|
2016-05-13 17:27:41 -04:00 |
|
Rob Rix
|
a624678778
|
alignChildren recurs in the symmetrical case.
|
2016-05-13 17:18:09 -04:00 |
|
Rob Rix
|
28c0672afd
|
Use alignChildren to grab the first lines, then recur.
|
2016-05-13 17:16:11 -04:00 |
|
Rob Rix
|
f8b07fecae
|
Stub in recursively selecting & splitting the first lines of children.
|
2016-05-13 17:15:45 -04:00 |
|