Skip to content Skip to sidebar Skip to footer
Showing posts with the label Haskell

Clean And Type-safe State Machine Implementation In A Statically Typed Language?

I implemented a simple state machine in Python: import time def a(): print 'a()' r… Read more Clean And Type-safe State Machine Implementation In A Statically Typed Language?

Python Equivalent Of Haskell's [1..] (to Index A List)

I have a list of elements in python. I don't know the number of elements in the list. I would l… Read more Python Equivalent Of Haskell's [1..] (to Index A List)

Equivalent Of Python Eval In Haskell

There is function in python called eval that takes string input and evaluates it. >>> x = … Read more Equivalent Of Python Eval In Haskell

How To Create A List Of String With The Prelude.functions?

I look for something equivalent to what we can have in Python doing this:: >>> print([func… Read more How To Create A List Of String With The Prelude.functions?