Last active
June 23, 2019 00:04
-
-
Save jrslepak/e7daada231ffa4980ada3cbcc9f800b5 to your computer and use it in GitHub Desktop.
Scribble docs for curried functions?
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#lang scribble/manual | |
This is a 3-argument curried function. | |
@defproc[(((lerp [lo number?]) | |
[hi number?]) | |
[alpha number?]) | |
number?]{ | |
Linear interpolation} | |
This is a 4-argument curried function. | |
@defproc[((((distance [x1 number?]) | |
[y1 number?]) | |
[x2 number?]) | |
[y2 number?]) | |
number?]{ | |
Euclidean distance from (x1,y1) to (x2,y2)} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment