mirror of
https://github.com/c0de-archive/hacktoberfest-2018.git
synced 2025-07-30 13:30:16 +00:00
Added my name and some Haskell code
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||

|
||||

|
||||

|
||||

|
||||
|
||||
@@ -992,6 +992,11 @@ Please note that this project is released with a [Code of Conduct](CODE_OF_CONDU
|
||||
[![github-alt][github-img]](https://github.com/DRXDesign)
|
||||
[![dribbblegit status-alt][dribbble-img]](https://dribbble.com/DRXDesign)
|
||||
|
||||
### Zornitsa Asanska
|
||||
- I am a first year university student and those are my first steps in GitHub.
|
||||
- I love Mathematics, good food and OOP. I am currently studying Haskell, my first functional programming language.
|
||||
-[![github-alt][github-img]] (https://github.com/ZornitsaAsanska)
|
||||
|
||||
------------
|
||||
## Copyright
|
||||
|
||||
|
14
code/HigherOrderFuctions.hs
Normal file
14
code/HigherOrderFuctions.hs
Normal file
@@ -0,0 +1,14 @@
|
||||
--First steps in Higher Order Functions
|
||||
|
||||
divideByTen :: (Floating a) => a -> a
|
||||
divideByTen = (/10)
|
||||
|
||||
divideTenBy :: (Floating a) => a -> a
|
||||
divideTenBy = (10/)
|
||||
|
||||
subtractFour :: (Num a) => a -> a
|
||||
subtractFour = (subtract 4)
|
||||
--subtract a b returns b-a
|
||||
-- subtract :: Num a => a -> a -> a
|
||||
--subtract a returns (a -> a) - a function that takes one parameter and subtracts the already given one from it
|
||||
|
Reference in New Issue
Block a user