• R/O
  • HTTP
  • SSH
  • HTTPS

提交

标签
No Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-cqtcocoa誰得pythonphprubygameguibathyscaphec翻訳計画中(planning stage)omegatframeworktwittertestdomvb.netdirectxbtronarduinopreviewerゲームエンジン

A categorical programming language


Commit MetaInfo

修订版2e72e243b753fa577512b238c184a8a52e0422a2 (tree)
时间2021-11-24 13:50:27
作者Corbin <cds@corb...>
CommiterCorbin

Log Message

Factor f-lt compositions.

更改概述

差异

--- a/hive/f/approx.cammy
+++ b/hive/f/approx.cammy
@@ -1,2 +1,2 @@
11 (comp (comp (f/error @0) f/sqr)
2- (comp (pair id (fun/const (comp f/1000 f-recip))) f-lt))
2+ (f/ltpair id (fun/const (comp f/1000 f-recip))))
--- /dev/null
+++ b/hive/f/ltpair.cammy
@@ -0,0 +1 @@
1+(comp (pair @0 @1) f-lt)
--- a/hive/fractal-membership.cammy
+++ b/hive/fractal-membership.cammy
@@ -1,6 +1,6 @@
11 (comp
22 (iter-fractal @0 @1)
33 (comp
4- (list/filter (comp (pair v2/norm (fun/const f/2)) f-lt))
4+ (list/filter (f/ltpair v2/norm (fun/const f/2)))
55 (comp list/len
66 (f/divpair nat/to-f (fun/const (comp @1 nat/to-f))))))
--- /dev/null
+++ b/hive/monads/cont/lift.cammy
@@ -0,0 +1 @@
1+(curry (fun/apppair snd (comp fst @0)))
--- /dev/null
+++ b/hive/monads/cont/unit.cammy
@@ -0,0 +1 @@
1+(curry (fun/apppair snd fst))
--- a/hive/sdf2d.cammy
+++ b/hive/sdf2d.cammy
@@ -1,5 +1,5 @@
11 (v3/triple id
22 (comp
3- (comp (pair id (fun/const f-zero)) f-lt)
3+ (f/ltpair id (fun/const f-zero))
44 (comp either (case f-zero f-one)))
55 id)
--- a/todo.txt
+++ b/todo.txt
@@ -1,25 +1,17 @@
11 * list/eq : [X × X, 2] → [[X] × [X], 2]
22 * list/zip : [X] × [Y] → [X × Y]
33 * list/tail : [X] → [X]
4-* list/unfold : [Y, X × Y + 1] → [Y, [X]]
54 * list/append : [X] × [X] → [X]
65 * rat
76 * refactoring from the bikeshed: ignore -> !
87 * Typechecker needs to handle holes
98 * Typechecker should handle polymorphism better
109 * Typechecker errors are inscrutable
11-* Draw complex functions
12- * hsl2rgb
13- * complex to HSL
1410 * Trigonometric functions
1511 * f-atan2 added, need f-sin and f-cos?
1612 * Transcendental and other constants
1713 * Euler's constant e
18- * pi
1914 * Euler's constant gamma
2015 * Remove movelist djinn, maybe?
21- * At least give up on having the clauses magically sorted; sort them in the
22- same order as the docs and cammy-run
23-* f/ltpair
2416 * Double-negation monad for CPS?
2517 * fun/name should always start from 1