PG Profile picture
PG
Exploring Blockchain + AI
Jan 1, 2022 6 tweets 5 min read
(79/n) Day79
#Haskell
#CardanoCommunity
Restarting 1tweet/day

Thunks: used to represent code that should be execute to evaluate expression

Main feature of thunk is ability to b updated when their value is evaluated (80/n) Day80
#CardanoCommunity
instead of quote tweet, i will be using tweet thread from today

#Haskell laziness boils down to creating Thunk

Today we will look at how a Thunk is evaluated
let x = a+2 in ...

Fig shows how 3 stages are involved in evaluating x Thunk's closure changes its...