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
| function array_union(a, b) { | |
| var cache = {}; | |
| function store(item) { | |
| cache[item] = item; | |
| } | |
| a.forEach(store); | |
| b.forEach(store); | |
| return Object.keys(cache).map(function(key) { return cache[key]; }); |
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
| module Lambda where | |
| import Data.Set (Set) | |
| import Data.Set qualified as Set | |
| import Data.Text (Text) | |
| import Data.Text qualified as Text | |
| newtype Symbol = Symbol Text | |
| deriving (Eq, Ord, Show) |
OlderNewer