Created
February 10, 2015 22:02
-
-
Save einarwh/f935d12996993129d1fc to your computer and use it in GitHub Desktop.
Function to create a diamond.
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
let diamond letters = | |
letters |> genLists | |
|> List.map (fun a -> mirror a) | |
|> List.rev | |
|> mirror |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment