#lang scheme #| permutations.ss: Export bindings from permutations-core.ss Copyright (C) 2008 Will M. Farr <farr@mit.edu> This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>. |# (require "private/permutations-core.ss") (provide :permutations in-permutations) (provide/contract (permutation? (-> any/c boolean?)) (permutation-identity (-> natural-number/c vector?)) (pvector-ref (-> vector? vector? natural-number/c any)) (pvector-set! (-> vector? vector? natural-number/c any/c any)) (permutation-next! (-> vector? (or/c vector? false/c))) (permutation-next (-> vector? (or/c vector? false/c))) (permutation-signature (-> vector? (one-of/c -1 1))))