3 ms·
Printing is the classic answer. Mutable arrays, for the clever people who know how or print. Also, looking at the article, the cryptic "fix" operator for maki
by lupire 6y ago
Printing is the classic answer.
Mutable arrays, for the clever people who know how or print.
Also, looking at the article, the cryptic "fix" operator for making a cyclic structure. Elegant, beautiful, efficient, but mysterious.
- yakshaving_jgt 6y agoPerhaps I’m missing something, but printing stuff in Haskell seems pretty simple. print “hello world” As for mutable arrays, is there something wrong with Data.Array.MArray from the array[0] library? [0]: https://hackage.haskell.org/package/array-0.5.4.0 https://hackage.haskell.org/package/array-0.5.4.0
- tome 6y agoHere's a cyclic structure. Seems very easy to me. No cryptic operator required! let one_zeros = 1 : zero_ones zero_ones = 0 : one_zeros