Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit136829b

Browse files
author
Vanessa McHale
committed
tetc.
1 parentf504f32 commit136829b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

‎Data/Functor/Foldable/Mod.idr‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ ana g = a'
2727
where a' x= embed.map a'. g$ x
2828

2929
||| Postpromorphism. Unfold a structure, applying a natural transformation along the way.
30-
postpro: (Recursivef t,Corecursivef t,Baset f)=> (f t-> f t)-> (a-> f a)-> a-> t
30+
postpro: (Recursivef t,Corecursivef t)=> (f t-> f t)-> (a-> f a)-> a-> t
3131
postpro e g= a'
3232
where a' x= embed.map (ana (e. project). a'). g$ x
3333

@@ -98,7 +98,7 @@ cata f = c
9898
where c x= f.map c. project$ x
9999

100100
||| Prepromorphism. Fold a structure while applying a natural transformation at each step.
101-
prepro: (Recursivef t,Corecursivef t,Basea f)=> (f t-> f t)-> (f a-> a)-> t-> a
101+
prepro: (Recursivef t,Corecursivef t)=> (f t-> f t)-> (f a-> a)-> t-> a
102102
prepro e f= c
103103
where c x= f.map (c. (cata (embed. e))). project$ x
104104

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp