Skip to content

Commit

Permalink
case function
Browse files Browse the repository at this point in the history
  • Loading branch information
lukaszcz committed Jan 5, 2023
1 parent f666840 commit fea6caf
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Stdlib/Function.juvix
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,7 @@ infixl 0 on;
on : {A : Type} → {B : Type} → {C : Type} → (B -> B -> C) -> (A -> B) -> A -> A -> C;
on f g a b := f (g a) (g b);

case : {A : Type} -> {B : Type} -> A -> (A -> B) -> B;
case expr b := b expr;

end;

0 comments on commit fea6caf

Please sign in to comment.