For a function f and a value x,
foldr f x [a,b,c]
gets turned into f(a, f(b, f(c, x)))
'(:)' is list concatenation, so the result is 1 : (2 : (3 : []))
(Here we are writing list concatenation in infix notation, rather than the customary prefix notation). '[1,2,3]' is shorthand for 1 : (2 : (3: [])) in Haskell.