Created
August 26, 2016 07:45
-
-
Save egisatoshi/75053ef9746b10fe4258b4847e5e0b95 to your computer and use it in GitHub Desktop.
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
(filter (match-lambda (list something) | |
{[(& <snoc ,D _> | |
<join _ <cons ,B <join _ <cons ,C _>>>> | |
<snoc _ <snoc _ <nioj _ <snoc ,B _>>>> | |
<join _ <cons ,C <join _ <cons ,A _>>>>) | |
#t] | |
[_ #f]}) | |
(match-all {A B C D} (multiset something) | |
[<cons $a <cons $b <cons $c <cons $d <nil>>>>> {a b c d}])) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment