Doug Currie
Doug Currie
Pattern matching is great when working with data structures. Compare [Haskell](https://github.com/dcurrie/lobster-bbtree/blob/master/bbtree.lobster#L97-L98) and [Lobster](https://github.com/dcurrie/lobster-bbtree/blob/master/bbtree.lobster#L119-L125) versions of a btree double rotation, for example. And even this is only possible because I defined...
> not sure how useful this is beyond very generic code Yes, that is exactly the situation, a generic hash table. > we'd simply need to add overloads to this...
I tried this: ``` nfr("hash", "x", "L", "I", "hashes a function value into an int", [](VM &vm, Value &a) { auto h = a.Hash(vm, V_FUNCTION); return Value(h); }); nfr("hash", "x",...
This version gives the same error: ``` nfr("hash", "x", "A", "I", "hashes any ref value into an int", [](VM &vm, Value &a) { auto h = a.ref()->Hash(vm); return Value(h); });...
@JakeCoxon See [the implementation on github](https://github.com/dcurrie/lobster-rosetta/blob/master/util/RobinHoodHashmap.lobster)
I guess the github AI is aggressive about closing issues... my comment was that this *fixes* this issue for CMake only!
This bug has been noted in mosml/doc/bugs as long as I can remember! - e
Sorry, this case was never compiled in my testing, and I didn't notice the issue. Adding a test for __clang__ >= 9 enables the code in my system, and the...
I considered a syntactic keyword, but it makes the logic a lot more complicated since there are now three cases instead of one, and they all need the same code,...
> Two issues seems mixed up. Well, yes and no. I understand your perspective. My perspective is that a scheme form can return a value or it can generate an...