Skip to content

Commit

Permalink
define the complex type before the remainder of the functions
Browse files Browse the repository at this point in the history
  • Loading branch information
stylewarning committed Oct 12, 2023
1 parent d294b48 commit fcec26b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions library/math/complex.lisp
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,9 @@
(define-type (Complex :a)
"Complex number that may either have a native or constructed representation."
(%Complex :a :a))
) ; COALTON-TOPLEVEL

(coalton-toplevel
(define-class (Num :a => Complex :a)
(complex (:a -> :a -> (Complex :a)))
(real-part (Complex :a -> :a))
Expand Down

0 comments on commit fcec26b

Please sign in to comment.