From dbd3eb5d1b68143ccbea16c3b6fd97db8f701f9e Mon Sep 17 00:00:00 2001 From: Sebastian Steger Date: Wed, 20 Aug 2025 15:14:30 +0200 Subject: [PATCH] functions stub --- haskell/03-functions/functions.hs | 33 +++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 haskell/03-functions/functions.hs diff --git a/haskell/03-functions/functions.hs b/haskell/03-functions/functions.hs new file mode 100644 index 0000000..a601809 --- /dev/null +++ b/haskell/03-functions/functions.hs @@ -0,0 +1,33 @@ + +-- single parameter + +-- two parameters + +-- ============= pattern matching ================= + +-- ============= guards ================= + +-- ============= recursive algorithms ================= + +-- ============= recursive list algorithms ================= + +-- ============= merge sort ================= + +-- =========== Filter all numbers that can be divided by 10 =========== + +-- ========================== standard deviation using lambdas ===================== +-- The standard deviation is a measure of the amount of variation or dispersion of a set of values. +-- It is defined as the square root of the average of the squared differences from the mean. +-- +-- Formula: +-- σ = sqrt( (1/N) * Σ (xi - μ)^2 ) +-- where: +-- - σ is the standard deviation, +-- - N is the number of values, +-- - xi represents each value, +-- - μ is the mean of the values. + +stddev seq = 0 + +-- ======================= order list of strings by length ================= +