Stella Mariesmkou.hashnode.dev·Apr 22, 2024Gleam: RaindropsProblem on Exercism pub fn convert(number: Int) -> String { } First Iteration: Pattern-matching To start, I just wanted to solve the problem and decided to use pattern-matching. pub fn convert(number: Int) -> String { case number % 3, number % 5...Discussgleam
Stella Mariesmkou.hashnode.dev·Apr 22, 2024Gleam: Difference of SquaresProblem on Exercism and on Project Euler pub fn square_of_sum(n: Int) -> Int {} pub fn sum_of_squares(n: Int) -> Int {} pub fn difference(n: Int) -> Int { square_of_sum(n) - sum_of_squares(n) } First Iteration: Recursion Since the square of th...Discussgleam