summaryrefslogtreecommitdiff
path: root/ack.kpl
diff options
context:
space:
mode:
authornodist <kevin.comas.git@gmail.com>2026-05-21 15:27:27 -0400
committernodist <kevin.comas.git@gmail.com>2026-05-21 15:27:27 -0400
commitc5f681d73d98c229b15eacd2791b376746d6f2a3 (patch)
tree46fa186e9c6aafedce7b9a479098c993be47c0d3 /ack.kpl
parentd4f7c50a64df49b920ac501fc5e4088728f6358b (diff)
named signed and unsigned types
Diffstat (limited to 'ack.kpl')
-rw-r--r--ack.kpl6
1 files changed, 3 insertions, 3 deletions
diff --git a/ack.kpl b/ack.kpl
index bbd9784..44df478 100644
--- a/ack.kpl
+++ b/ack.kpl
@@ -3,10 +3,10 @@
`export ack : Fn[m; n] $ (
t : `type m;
- ? |(t != `type n; t != Int[Any; Any; Any]) {
- `panic "m and n must be the same type of Int"
+ ? |(t != `type n) {
+ `panic "m and n must be the same type"
}
- ? t = Int[Any; .signed; Any] {
+ ? |(t = Int_signed; t = Float) {
? |(m < 0; n < 0) { `return 0 }
}
? {