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
open System | |
// We can not work with radius of the diamond outside 0 to 25 | |
let createRadius i = | |
match i with | |
| i when i >= 0 && i < 26 -> Some i | |
| _ -> None | |
let radius = createRadius 20 |> Option.get | |
let axis = [|-radius .. radius|] |