Skip to content

Instantly share code, notes, and snippets.

@Ivana-
Ivana- / Infinite_data_structures.py
Last active February 25, 2020 22:34
Infinite data structures python
# https://www.onlinegdb.com/online_python_interpreter#
'''
-- immutable, persistent, coinductive streams
ones = 1 : ones
fibs = 0 : 1 : zipWith (+) fibs (tail fibs)
hamm = 1 : map (*2) hamm `f` map (*3) hamm `f` map (*5) hamm where