Skip to content

Commit

Permalink
Remove unnecessary parens
Browse files Browse the repository at this point in the history
  • Loading branch information
samestep committed Jan 2, 2024
1 parent e3662b5 commit b159aa4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/rose/src/array.rose
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,6 @@ pub def T => new (n : u32) (f : u32 -> T) : []T =
def transpose do_for ((n, f) : (u32, u32 -> ())) : ((), () -> ()) =
let g : u32 -> ((), () -> ()) = transpose f
let hs : [](() -> ()) = new n (\i => let (_, h) = g i in h)
in ((), \() => do_for (n, \i => (hs i) ()))
in ((), \() => do_for (n, \i => hs i ()))

pub def A B => map (f : A -> B) (xs : []A) : []B = new (len xs) (\i => f (xs i))

0 comments on commit b159aa4

Please sign in to comment.