This file contains hidden or 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
""" | |
OmegaComputadsLibrary | |
Collection of data structures for omega computads and omega categories. | |
""" | |
from collections import deque | |
class Cell: | |
""" |
This file contains hidden or 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
// Prelude stuff | |
(String.concat String.nil ys) = ys | |
(String.concat (String.cons x xs) ys) = (String.cons x (String.concat xs ys)) | |
// Search Stuff | |
(List.head List.nil) = (Err "Head Taken on empty list") | |
(List.head (List.cons x _)) = x | |
(List.take 0 xs) = List.nil | |
(List.take n List.nil) = List.nil |