Skip to content

Commit 6d760a2

Browse files
committed
replace more anonymous functions
1 parent dfed1a7 commit 6d760a2

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/ranges.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -374,7 +374,7 @@ end
374374
Returns valid indices for each array in `x` along dimension `dim`
375375
"""
376376
@propagate_inbounds function indices(x::Tuple, dim)
377-
inds = map(x_i -> indices(x_i, dim), x)
377+
inds = map(Base.Fix2(indices, dim), x)
378378
return reduce_tup(_pick_range, inds)
379379
end
380380

src/stridelayout.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -671,7 +671,7 @@ end
671671
@inline function _reinterp_strides(stp::Tuple, els::StaticInt, elp::StaticInt)
672672
if elp % els == 0
673673
N = elp ÷ els
674-
return map(i -> N * i, stp)
674+
return map(Base.Fix2(*, N), stp)
675675
else
676676
return map(stp) do i
677677
d, r = divrem(elp * i, els)

0 commit comments

Comments
 (0)