Skip to content

Commit 0d36405

Browse files
author
Will Tebbutt
committed
Do-block syntax
1 parent d236431 commit 0d36405

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/tables.jl

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -50,10 +50,9 @@ end
5050
# the dth element of `indices`, whose type it could not infer.
5151
function _get_keys_columns(R)
5252
R_inds = map(eachindex, R)
53-
return map(
54-
(r, d) -> vec([r[indices[d]] for indices in Iterators.product(R_inds...)]),
55-
R, ntuple(identity, length(R)),
56-
)
53+
return map(R, ntuple(identity, length(R))) do r, d
54+
vec([r[indices[d]] for indices in Iterators.product(R_inds...)])
55+
end
5756
end
5857

5958
function Tables.Schema(nt::NamedTuple) # 🏴‍☠️

0 commit comments

Comments
 (0)