Guest User

Untitled

a guest
Nov 20th, 2018
120
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Scheme 0.14 KB | None | 0 0
  1. (define (permute ss)
  2.   (match ss
  3.     ['() '(())]
  4.     [xs (let* ([x xs]
  5.                [ys (permute (remove x xs))])
  6.        (cons x ys))]))
Add Comment
Please, Sign In to add comment