Skip to content

Instantly share code, notes, and snippets.

@vvvvalvalval
vvvvalvalval / datomic_datalog_count-related-entities-with-zero-sums.clj
Last active December 15, 2023 23:40
Datomic datalog: counting related entities with 0 sums
@pchiusano
pchiusano / abt.hs
Last active November 18, 2020 05:42
Simple abstract binding trees implementation in Haskell
-- A port of: http://semantic-domain.blogspot.com/2015/03/abstract-binding-trees.html
{-# LANGUAGE DeriveFunctor #-}
module ABT where
import qualified Data.Foldable as Foldable
import Data.Foldable (Foldable)
import Data.Set (Set)
import qualified Data.Set as Set