Skip to content

Commit 36b0c61

Browse files
committed
remove special casing for unpack reduce join
1 parent 413e98e commit 36b0c61

File tree

1 file changed

+0
-15
lines changed

1 file changed

+0
-15
lines changed

src/algorithm/reduce.rs

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -26,21 +26,6 @@ pub fn reduce(env: &mut Uiua) -> UiuaResult {
2626
*xs.shape_mut() = new_shape;
2727
env.push(xs);
2828
}
29-
(Some((Primitive::Join, flipped)), xs) => {
30-
let rows = xs.into_rows().map(|row| {
31-
if env.unpack_boxes() {
32-
row.unpacked()
33-
} else {
34-
row
35-
}
36-
});
37-
let rows: Vec<_> = if flipped {
38-
rows.rev().flat_map(|row| row.into_rows()).collect()
39-
} else {
40-
rows.flat_map(|row| row.into_rows()).collect()
41-
};
42-
env.push(Value::from_row_values(rows, env)?);
43-
}
4429
(Some((prim, flipped)), Value::Num(nums)) => {
4530
if let Err(nums) = reduce_nums(prim, flipped, nums, env) {
4631
return generic_reduce(f, Value::Num(nums), env);

0 commit comments

Comments
 (0)