Skip to content

Commit

Permalink
add last restructuring task but with >> substituted for |>
Browse files Browse the repository at this point in the history
  • Loading branch information
disconcision committed Nov 8, 2024
1 parent 33368a3 commit 2fa0a80
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
4 changes: 2 additions & 2 deletions src/hazel/Grammar.re
Original file line number Diff line number Diff line change
Expand Up @@ -149,8 +149,8 @@ module Exp = {
//let
p(let_),
p(type_def),
//Reverse-ap (disabled for now as interferes with case rules)
//p(~a=L, seq([exp, op("|>"), exp])),
//Reverse-ap (re-syntaxed for now as interferes with case rules)
p(~a=L, seq([exp, op(">>"), exp])),
//fun
p(
seq([kw(~space=(false, true), "fun"), nt(Pat.sort), op("->"), exp]),
Expand Down
16 changes: 8 additions & 8 deletions src/web/Data.re
Original file line number Diff line number Diff line change
Expand Up @@ -42,16 +42,16 @@ in
[mark(p1), line(p1, p2), mark(p2)]|};

let t3_transcribe = {|shapes
|> map(rotate(pi / 4))
|> map(translate(6, 7))
|> filter(fun shape -> area(shape) < 50)
|> map(dilate(5))|};
>> map(rotate(pi / 4))
>> map(translate(6, 7))
>> filter(fun shape -> area(shape) < 50)
>> map(dilate(5))|};

let t3_modify = {|shapes
|> filter(fun shape -> area(shape) < 50)
|> map(dilate(5))
|> map(rotate(pi / 4))
|> map(translate(6, 7))|};
>> filter(fun shape -> area(shape) < 50)
>> map(dilate(5))
>> map(rotate(pi / 4))
>> map(translate(6, 7))|};

let emoji_paint = {|type Emoji = None + Smile + Laugh in
let Row = Int in
Expand Down

0 comments on commit 2fa0a80

Please sign in to comment.