Press CTRL+C or CMD+C to copy the selected text and close this dialog.
Tweet
0 people like it. Like the snippet!
1: 2: 3: 4: 5: 6: 7: 8: 9: 10: 11:
// Define area of a rectangle let area w h = w * h // Define half of a value let half x = x / 2 // Triangle area is half of it's rectangle let triangleArea w h = half (area w h) // Calculate triangle area with w=2; h=4 let myTriangle = triangleArea 2 4