Created
October 3, 2018 04:01
-
-
Save jbclements/6f42e70548fd68be49b74f1a16235108 to your computer and use it in GitHub Desktop.
The list template, in Typed Racket.
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 typed/racket | |
;; purpose statement goes here... | |
(define (fun-for-lists [l : (Listof Any)]) ; refine the types... | |
(match l | |
['() ...] | |
[(cons fst rst) ... fst ... (fun-for-lists rst) ...])) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment