Skip to content

Instantly share code, notes, and snippets.

@egisatoshi
Created August 26, 2016 07:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save egisatoshi/75053ef9746b10fe4258b4847e5e0b95 to your computer and use it in GitHub Desktop.
Save egisatoshi/75053ef9746b10fe4258b4847e5e0b95 to your computer and use it in GitHub Desktop.
(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