Safe Haskell | Safe-Inferred |
---|
- data Element
- atomicNumber :: Element -> Int
- element :: Int -> Element
- elementBySymbol :: String -> Element
- shellElectrons :: Element -> [Int]
- valanceElectrons :: Element -> Int
- covalentBounds :: Element -> Int
Documentation
atomicNumber :: Element -> IntSource
elementBySymbol :: String -> ElementSource
Find element by its symbol
atomicNumber (elementBySymbol "O") == 8
shellElectrons :: Element -> [Int]Source
Show number of electrons in each shell
let e = element 8 shellElectrons e == [2, 6]
valanceElectrons :: Element -> IntSource
Number of valance electrons
let e = element 8 valanceElectrons e == 6
covalentBounds :: Element -> IntSource
Number of covalent bounds in element
let e = element 8 covalentBounds e == 2