Skip to content

Commit 1dc72ae

Browse files
committed
use do block
1 parent b751f9e commit 1dc72ae

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/fusiontensor/fusiontensor.jl

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -216,12 +216,13 @@ function intersect_codomain_domain(
216216
)
217217
return Dict(
218218
map(
219-
t -> first.(t) => to_blockindexrange(last.(t)...),
220219
Iterators.filter(
221220
t -> root_sector(first(t[1])) == root_sector(first(t[2])),
222221
Iterators.product(codomain_trees_to_ranges_mapping, domain_trees_to_ranges_mapping),
223222
),
224-
),
223+
) do t
224+
return first.(t) => to_blockindexrange(last.(t)...)
225+
end,
225226
)
226227
end
227228

0 commit comments

Comments
 (0)