OK, I have decided: at #zurihac25 I will talk about competitive programming in #haskell ! I will probably give a general overview, livecode some examples, and then we'll have a mini-contest.
I've tried debugging by pen and paper to work through what foldr and the helper function does step by step using the definition from the online course:
foldr :: (a -> b -> b) -> b -> [a] -> b
foldr f y [] = y
foldr f y (x:xs) = f x (foldr f y xs)
----
f 2 [1,1] = f 2 ( f 1 [1])
= f 2 ( f 1 ( f 1 [] ) )
= f 2 ( f 1 [1] )
= f 2 ( [1,1] )
= [2,1]
... ok I think I found the bug
so my logic is wrong.
stuck on a #haskell puzzle
aim return a list of all occurrences of the largest Int in a list
my solution has a bug
[2,1,1] it returns [2,1] not [2]
--------
-- Examples:
-- largest [] ==> []
-- largest [1,3,2] ==> [3]
-- largest [1,3,2,3] ==> [3,3]
largest :: [Int] -> [Int]
largest xs = foldr largestHelper [] xs
largestHelper :: Int -> [Int] -> [Int]
largestHelper x [] = [x]
largestHelper x (y:xr)
| x > y = x:xr
| x == y = x:y:xr
| otherwise = y:xr
--------
help!
cabal-install 3.14.2.0 released
https://discourse.haskell.org/t/cabal-install-3-14-2-0-released/11800
With a number of very important regression fixes! Try it now!
Many thanks to our release manager Mikolaj Konarski and all contributors!
Boosts for reach appreciated!
Hasochism: The pleasure and pain of dependently typed Haskell programming [pdf] (2013)
Link: https://personal.cis.strath.ac.uk/conor.mcbride/pub/hasochism.pdf
Discussion: https://news.ycombinator.com/item?id=43613994
Curso "Lógica matemática y fundamentos (2011-12)". https://jaalonso.github.io/cursos/lmf-11 #Lógica #Haskell #ProgramaciónFuncional
Hasochism: The pleasure and pain of dependently typed Haskell programming [pdf] (2013)
https://personal.cis.strath.ac.uk/conor.mcbride/pub/hasochism.pdf
Haskell recap for week 14/2025
https://discu.eu/weekly/haskell/2025/14/
Get RSS feeds and support this bot with the premium plan: https://discu.eu/premium
The Read interface is Haskell’s original sin
Ready to geek out over functional programming? Join us for the upcoming FPIndia Bangalore meetup!
https://hasgeek.com/fpindia/bangalore-fp-april-meetup/
#Bangalore #FunctionalProgramming #FPIndia #Meetup #India #Haskell #PureScript #OCaml #Elixir #Clojure #Scala
#Exercitium: Elementos de una matriz con algún vecino menor. https://jaalonso.github.io/exercitium/posts/2014/05/29-algun_vecino_menor/ #Haskell #ProgramaciónFuncional #Matemáticas