Find it here: https://github.com/bitemyapp/learnhaskell
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
"""Merge sort a singly linked linear list.""" | |
import random | |
from itertools import product | |
# Linked list is either empty or a value and a link to the next list | |
empty = None # empty list | |
class LL(object): | |
__slots__ = "value", "next" |
(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.