Created
December 25, 2014 00:13
-
-
Save cartermp/f329105ef9d52cb3f9dd to your computer and use it in GitHub Desktop.
F# pipe-forward operator implemented in Scheme with a quick test
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
(define (|> f g) | |
(g f)) | |
(define (square x) | |
(* x x)) | |
(|> '(1 2 3 4 5) (lambda (x) (map square x))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment