returns direction that goes downwards from here, but both downwards and upwards from everywhere else. This is good for getting everything _below_ a point in the graph
()
| 289 | |
| 290 | /** |
| 291 | * returns direction that goes downwards from here, but both downwards and upwards from everywhere else. This is good for getting everything _below_ a point in the graph |
| 292 | */ |
| 293 | @HiddenInAutocomplete |
| 294 | public Function<Box, Collection<Box>> allDownwardsFrom() { |
| 295 | Function<Box, Collection<Box>> b = both(); |
| 296 | return x -> { |
| 297 | if (x == this) |
| 298 | return x.children(); |
| 299 | else return b.apply(x); |
| 300 | }; |
| 301 | } |
| 302 |
no test coverage detected