LilyPond-Ruby 0.1.1 → 0.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/etc/fonts/conf.d/10-hinting-slight.conf +15 -0
- data/etc/fonts/conf.d/10-scale-bitmap-fonts.conf +83 -0
- data/etc/fonts/conf.d/11-lcdfilter-default.conf +17 -0
- data/etc/fonts/conf.d/20-unhint-small-vera.conf +49 -0
- data/etc/fonts/conf.d/30-metric-aliases.conf +637 -0
- data/etc/fonts/conf.d/40-nonlatin.conf +332 -0
- data/etc/fonts/conf.d/45-generic.conf +136 -0
- data/etc/fonts/conf.d/45-latin.conf +301 -0
- data/etc/fonts/conf.d/48-spacing.conf +16 -0
- data/etc/fonts/conf.d/49-sansserif.conf +22 -0
- data/etc/fonts/conf.d/50-user.conf +16 -0
- data/etc/fonts/conf.d/51-local.conf +7 -0
- data/etc/fonts/conf.d/60-generic.conf +64 -0
- data/etc/fonts/conf.d/60-latin.conf +88 -0
- data/etc/fonts/conf.d/65-fonts-persian.conf +418 -0
- data/etc/fonts/conf.d/65-nonlatin.conf +228 -0
- data/etc/fonts/conf.d/69-unifont.conf +28 -0
- data/etc/fonts/conf.d/80-delicious.conf +19 -0
- data/etc/fonts/conf.d/90-synthetic.conf +64 -0
- data/etc/fonts/conf.d/README +23 -0
- data/etc/fonts/fonts.conf +101 -0
- data/etc/relocate/fontconfig.reloc +2 -0
- data/etc/relocate/guile.reloc +2 -0
- data/etc/relocate/libexec.reloc +1 -0
- data/lib/guile/2.2/ccache/ice-9/and-let-star.go +0 -0
- data/lib/guile/2.2/ccache/ice-9/arrays.go +0 -0
- data/lib/guile/2.2/ccache/ice-9/atomic.go +0 -0
- data/lib/guile/2.2/ccache/ice-9/binary-ports.go +0 -0
- data/lib/guile/2.2/ccache/ice-9/boot-9.go +0 -0
- data/lib/guile/2.2/ccache/ice-9/buffered-input.go +0 -0
- data/lib/guile/2.2/ccache/ice-9/calling.go +0 -0
- data/lib/guile/2.2/ccache/ice-9/channel.go +0 -0
- data/lib/guile/2.2/ccache/ice-9/command-line.go +0 -0
- data/lib/guile/2.2/ccache/ice-9/common-list.go +0 -0
- data/lib/guile/2.2/ccache/ice-9/control.go +0 -0
- data/lib/guile/2.2/ccache/ice-9/curried-definitions.go +0 -0
- data/lib/guile/2.2/ccache/ice-9/debug.go +0 -0
- data/lib/guile/2.2/ccache/ice-9/deprecated.go +0 -0
- data/lib/guile/2.2/ccache/ice-9/documentation.go +0 -0
- data/lib/guile/2.2/ccache/ice-9/eval-string.go +0 -0
- data/lib/guile/2.2/ccache/ice-9/eval.go +0 -0
- data/lib/guile/2.2/ccache/ice-9/expect.go +0 -0
- data/lib/guile/2.2/ccache/ice-9/fdes-finalizers.go +0 -0
- data/lib/guile/2.2/ccache/ice-9/format.go +0 -0
- data/lib/guile/2.2/ccache/ice-9/ftw.go +0 -0
- data/lib/guile/2.2/ccache/ice-9/futures.go +0 -0
- data/lib/guile/2.2/ccache/ice-9/gap-buffer.go +0 -0
- data/lib/guile/2.2/ccache/ice-9/getopt-long.go +0 -0
- data/lib/guile/2.2/ccache/ice-9/hash-table.go +0 -0
- data/lib/guile/2.2/ccache/ice-9/hcons.go +0 -0
- data/lib/guile/2.2/ccache/ice-9/history.go +0 -0
- data/lib/guile/2.2/ccache/ice-9/i18n.go +0 -0
- data/lib/guile/2.2/ccache/ice-9/iconv.go +0 -0
- data/lib/guile/2.2/ccache/ice-9/lineio.go +0 -0
- data/lib/guile/2.2/ccache/ice-9/list.go +0 -0
- data/lib/guile/2.2/ccache/ice-9/local-eval.go +0 -0
- data/lib/guile/2.2/ccache/ice-9/ls.go +0 -0
- data/lib/guile/2.2/ccache/ice-9/mapping.go +0 -0
- data/lib/guile/2.2/ccache/ice-9/match.go +0 -0
- data/lib/guile/2.2/ccache/ice-9/networking.go +0 -0
- data/lib/guile/2.2/ccache/ice-9/null.go +0 -0
- data/lib/guile/2.2/ccache/ice-9/occam-channel.go +0 -0
- data/lib/guile/2.2/ccache/ice-9/optargs.go +0 -0
- data/lib/guile/2.2/ccache/ice-9/peg/cache.go +0 -0
- data/lib/guile/2.2/ccache/ice-9/peg/codegen.go +0 -0
- data/lib/guile/2.2/ccache/ice-9/peg/simplify-tree.go +0 -0
- data/lib/guile/2.2/ccache/ice-9/peg/string-peg.go +0 -0
- data/lib/guile/2.2/ccache/ice-9/peg/using-parsers.go +0 -0
- data/lib/guile/2.2/ccache/ice-9/peg.go +0 -0
- data/lib/guile/2.2/ccache/ice-9/poe.go +0 -0
- data/lib/guile/2.2/ccache/ice-9/poll.go +0 -0
- data/lib/guile/2.2/ccache/ice-9/popen.go +0 -0
- data/lib/guile/2.2/ccache/ice-9/ports.go +0 -0
- data/lib/guile/2.2/ccache/ice-9/posix.go +0 -0
- data/lib/guile/2.2/ccache/ice-9/pretty-print.go +0 -0
- data/lib/guile/2.2/ccache/ice-9/psyntax-pp.go +0 -0
- data/lib/guile/2.2/ccache/ice-9/q.go +0 -0
- data/lib/guile/2.2/ccache/ice-9/r5rs.go +0 -0
- data/lib/guile/2.2/ccache/ice-9/rdelim.go +0 -0
- data/lib/guile/2.2/ccache/ice-9/receive.go +0 -0
- data/lib/guile/2.2/ccache/ice-9/regex.go +0 -0
- data/lib/guile/2.2/ccache/ice-9/runq.go +0 -0
- data/lib/guile/2.2/ccache/ice-9/rw.go +0 -0
- data/lib/guile/2.2/ccache/ice-9/safe-r5rs.go +0 -0
- data/lib/guile/2.2/ccache/ice-9/safe.go +0 -0
- data/lib/guile/2.2/ccache/ice-9/sandbox.go +0 -0
- data/lib/guile/2.2/ccache/ice-9/save-stack.go +0 -0
- data/lib/guile/2.2/ccache/ice-9/scm-style-repl.go +0 -0
- data/lib/guile/2.2/ccache/ice-9/serialize.go +0 -0
- data/lib/guile/2.2/ccache/ice-9/session.go +0 -0
- data/lib/guile/2.2/ccache/ice-9/slib.go +0 -0
- data/lib/guile/2.2/ccache/ice-9/stack-catch.go +0 -0
- data/lib/guile/2.2/ccache/ice-9/streams.go +0 -0
- data/lib/guile/2.2/ccache/ice-9/string-fun.go +0 -0
- data/lib/guile/2.2/ccache/ice-9/suspendable-ports.go +0 -0
- data/lib/guile/2.2/ccache/ice-9/syncase.go +0 -0
- data/lib/guile/2.2/ccache/ice-9/textual-ports.go +0 -0
- data/lib/guile/2.2/ccache/ice-9/threads.go +0 -0
- data/lib/guile/2.2/ccache/ice-9/time.go +0 -0
- data/lib/guile/2.2/ccache/ice-9/top-repl.go +0 -0
- data/lib/guile/2.2/ccache/ice-9/unicode.go +0 -0
- data/lib/guile/2.2/ccache/ice-9/vlist.go +0 -0
- data/lib/guile/2.2/ccache/ice-9/weak-vector.go +0 -0
- data/lib/guile/2.2/ccache/language/brainfuck/compile-scheme.go +0 -0
- data/lib/guile/2.2/ccache/language/brainfuck/compile-tree-il.go +0 -0
- data/lib/guile/2.2/ccache/language/brainfuck/parse.go +0 -0
- data/lib/guile/2.2/ccache/language/brainfuck/spec.go +0 -0
- data/lib/guile/2.2/ccache/language/bytecode/spec.go +0 -0
- data/lib/guile/2.2/ccache/language/bytecode.go +0 -0
- data/lib/guile/2.2/ccache/language/cps/closure-conversion.go +0 -0
- data/lib/guile/2.2/ccache/language/cps/compile-bytecode.go +0 -0
- data/lib/guile/2.2/ccache/language/cps/constructors.go +0 -0
- data/lib/guile/2.2/ccache/language/cps/contification.go +0 -0
- data/lib/guile/2.2/ccache/language/cps/cse.go +0 -0
- data/lib/guile/2.2/ccache/language/cps/dce.go +0 -0
- data/lib/guile/2.2/ccache/language/cps/effects-analysis.go +0 -0
- data/lib/guile/2.2/ccache/language/cps/elide-values.go +0 -0
- data/lib/guile/2.2/ccache/language/cps/handle-interrupts.go +0 -0
- data/lib/guile/2.2/ccache/language/cps/intmap.go +0 -0
- data/lib/guile/2.2/ccache/language/cps/intset.go +0 -0
- data/lib/guile/2.2/ccache/language/cps/licm.go +0 -0
- data/lib/guile/2.2/ccache/language/cps/optimize.go +0 -0
- data/lib/guile/2.2/ccache/language/cps/peel-loops.go +0 -0
- data/lib/guile/2.2/ccache/language/cps/primitives.go +0 -0
- data/lib/guile/2.2/ccache/language/cps/prune-bailouts.go +0 -0
- data/lib/guile/2.2/ccache/language/cps/prune-top-level-scopes.go +0 -0
- data/lib/guile/2.2/ccache/language/cps/reify-primitives.go +0 -0
- data/lib/guile/2.2/ccache/language/cps/renumber.go +0 -0
- data/lib/guile/2.2/ccache/language/cps/rotate-loops.go +0 -0
- data/lib/guile/2.2/ccache/language/cps/self-references.go +0 -0
- data/lib/guile/2.2/ccache/language/cps/simplify.go +0 -0
- data/lib/guile/2.2/ccache/language/cps/slot-allocation.go +0 -0
- data/lib/guile/2.2/ccache/language/cps/spec.go +0 -0
- data/lib/guile/2.2/ccache/language/cps/specialize-numbers.go +0 -0
- data/lib/guile/2.2/ccache/language/cps/specialize-primcalls.go +0 -0
- data/lib/guile/2.2/ccache/language/cps/split-rec.go +0 -0
- data/lib/guile/2.2/ccache/language/cps/type-checks.go +0 -0
- data/lib/guile/2.2/ccache/language/cps/type-fold.go +0 -0
- data/lib/guile/2.2/ccache/language/cps/types.go +0 -0
- data/lib/guile/2.2/ccache/language/cps/utils.go +0 -0
- data/lib/guile/2.2/ccache/language/cps/verify.go +0 -0
- data/lib/guile/2.2/ccache/language/cps/with-cps.go +0 -0
- data/lib/guile/2.2/ccache/language/cps.go +0 -0
- data/lib/guile/2.2/ccache/language/ecmascript/array.go +0 -0
- data/lib/guile/2.2/ccache/language/ecmascript/base.go +0 -0
- data/lib/guile/2.2/ccache/language/ecmascript/compile-tree-il.go +0 -0
- data/lib/guile/2.2/ccache/language/ecmascript/function.go +0 -0
- data/lib/guile/2.2/ccache/language/ecmascript/impl.go +0 -0
- data/lib/guile/2.2/ccache/language/ecmascript/parse.go +0 -0
- data/lib/guile/2.2/ccache/language/ecmascript/spec.go +0 -0
- data/lib/guile/2.2/ccache/language/ecmascript/tokenize.go +0 -0
- data/lib/guile/2.2/ccache/language/elisp/bindings.go +0 -0
- data/lib/guile/2.2/ccache/language/elisp/boot.go +0 -0
- data/lib/guile/2.2/ccache/language/elisp/compile-tree-il.go +0 -0
- data/lib/guile/2.2/ccache/language/elisp/falias.go +0 -0
- data/lib/guile/2.2/ccache/language/elisp/lexer.go +0 -0
- data/lib/guile/2.2/ccache/language/elisp/parser.go +0 -0
- data/lib/guile/2.2/ccache/language/elisp/runtime/function-slot.go +0 -0
- data/lib/guile/2.2/ccache/language/elisp/runtime/value-slot.go +0 -0
- data/lib/guile/2.2/ccache/language/elisp/runtime.go +0 -0
- data/lib/guile/2.2/ccache/language/elisp/spec.go +0 -0
- data/lib/guile/2.2/ccache/language/scheme/compile-tree-il.go +0 -0
- data/lib/guile/2.2/ccache/language/scheme/decompile-tree-il.go +0 -0
- data/lib/guile/2.2/ccache/language/scheme/spec.go +0 -0
- data/lib/guile/2.2/ccache/language/tree-il/analyze.go +0 -0
- data/lib/guile/2.2/ccache/language/tree-il/canonicalize.go +0 -0
- data/lib/guile/2.2/ccache/language/tree-il/compile-cps.go +0 -0
- data/lib/guile/2.2/ccache/language/tree-il/debug.go +0 -0
- data/lib/guile/2.2/ccache/language/tree-il/effects.go +0 -0
- data/lib/guile/2.2/ccache/language/tree-il/fix-letrec.go +0 -0
- data/lib/guile/2.2/ccache/language/tree-il/optimize.go +0 -0
- data/lib/guile/2.2/ccache/language/tree-il/peval.go +0 -0
- data/lib/guile/2.2/ccache/language/tree-il/primitives.go +0 -0
- data/lib/guile/2.2/ccache/language/tree-il/spec.go +0 -0
- data/lib/guile/2.2/ccache/language/tree-il.go +0 -0
- data/lib/guile/2.2/ccache/language/value/spec.go +0 -0
- data/lib/guile/2.2/ccache/oop/goops/accessors.go +0 -0
- data/lib/guile/2.2/ccache/oop/goops/active-slot.go +0 -0
- data/lib/guile/2.2/ccache/oop/goops/composite-slot.go +0 -0
- data/lib/guile/2.2/ccache/oop/goops/describe.go +0 -0
- data/lib/guile/2.2/ccache/oop/goops/internal.go +0 -0
- data/lib/guile/2.2/ccache/oop/goops/save.go +0 -0
- data/lib/guile/2.2/ccache/oop/goops/simple.go +0 -0
- data/lib/guile/2.2/ccache/oop/goops/stklos.go +0 -0
- data/lib/guile/2.2/ccache/oop/goops.go +0 -0
- data/lib/guile/2.2/ccache/rnrs/arithmetic/bitwise.go +0 -0
- data/lib/guile/2.2/ccache/rnrs/arithmetic/fixnums.go +0 -0
- data/lib/guile/2.2/ccache/rnrs/arithmetic/flonums.go +0 -0
- data/lib/guile/2.2/ccache/rnrs/base.go +0 -0
- data/lib/guile/2.2/ccache/rnrs/bytevectors.go +0 -0
- data/lib/guile/2.2/ccache/rnrs/conditions.go +0 -0
- data/lib/guile/2.2/ccache/rnrs/control.go +0 -0
- data/lib/guile/2.2/ccache/rnrs/enums.go +0 -0
- data/lib/guile/2.2/ccache/rnrs/eval.go +0 -0
- data/lib/guile/2.2/ccache/rnrs/exceptions.go +0 -0
- data/lib/guile/2.2/ccache/rnrs/files.go +0 -0
- data/lib/guile/2.2/ccache/rnrs/hashtables.go +0 -0
- data/lib/guile/2.2/ccache/rnrs/io/ports.go +0 -0
- data/lib/guile/2.2/ccache/rnrs/io/simple.go +0 -0
- data/lib/guile/2.2/ccache/rnrs/lists.go +0 -0
- data/lib/guile/2.2/ccache/rnrs/mutable-pairs.go +0 -0
- data/lib/guile/2.2/ccache/rnrs/mutable-strings.go +0 -0
- data/lib/guile/2.2/ccache/rnrs/programs.go +0 -0
- data/lib/guile/2.2/ccache/rnrs/r5rs.go +0 -0
- data/lib/guile/2.2/ccache/rnrs/records/inspection.go +0 -0
- data/lib/guile/2.2/ccache/rnrs/records/procedural.go +0 -0
- data/lib/guile/2.2/ccache/rnrs/records/syntactic.go +0 -0
- data/lib/guile/2.2/ccache/rnrs/sorting.go +0 -0
- data/lib/guile/2.2/ccache/rnrs/syntax-case.go +0 -0
- data/lib/guile/2.2/ccache/rnrs/unicode.go +0 -0
- data/lib/guile/2.2/ccache/rnrs.go +0 -0
- data/lib/guile/2.2/ccache/scripts/api-diff.go +0 -0
- data/lib/guile/2.2/ccache/scripts/autofrisk.go +0 -0
- data/lib/guile/2.2/ccache/scripts/compile.go +0 -0
- data/lib/guile/2.2/ccache/scripts/disassemble.go +0 -0
- data/lib/guile/2.2/ccache/scripts/display-commentary.go +0 -0
- data/lib/guile/2.2/ccache/scripts/doc-snarf.go +0 -0
- data/lib/guile/2.2/ccache/scripts/frisk.go +0 -0
- data/lib/guile/2.2/ccache/scripts/generate-autoload.go +0 -0
- data/lib/guile/2.2/ccache/scripts/help.go +0 -0
- data/lib/guile/2.2/ccache/scripts/lint.go +0 -0
- data/lib/guile/2.2/ccache/scripts/list.go +0 -0
- data/lib/guile/2.2/ccache/scripts/punify.go +0 -0
- data/lib/guile/2.2/ccache/scripts/read-rfc822.go +0 -0
- data/lib/guile/2.2/ccache/scripts/read-scheme-source.go +0 -0
- data/lib/guile/2.2/ccache/scripts/read-text-outline.go +0 -0
- data/lib/guile/2.2/ccache/scripts/scan-api.go +0 -0
- data/lib/guile/2.2/ccache/scripts/snarf-check-and-output-texi.go +0 -0
- data/lib/guile/2.2/ccache/scripts/snarf-guile-m4-docs.go +0 -0
- data/lib/guile/2.2/ccache/scripts/summarize-guile-TODO.go +0 -0
- data/lib/guile/2.2/ccache/scripts/use2dot.go +0 -0
- data/lib/guile/2.2/ccache/srfi/srfi-1.go +0 -0
- data/lib/guile/2.2/ccache/srfi/srfi-10.go +0 -0
- data/lib/guile/2.2/ccache/srfi/srfi-11.go +0 -0
- data/lib/guile/2.2/ccache/srfi/srfi-111.go +0 -0
- data/lib/guile/2.2/ccache/srfi/srfi-13.go +0 -0
- data/lib/guile/2.2/ccache/srfi/srfi-14.go +0 -0
- data/lib/guile/2.2/ccache/srfi/srfi-16.go +0 -0
- data/lib/guile/2.2/ccache/srfi/srfi-17.go +0 -0
- data/lib/guile/2.2/ccache/srfi/srfi-18.go +0 -0
- data/lib/guile/2.2/ccache/srfi/srfi-19.go +0 -0
- data/lib/guile/2.2/ccache/srfi/srfi-2.go +0 -0
- data/lib/guile/2.2/ccache/srfi/srfi-26.go +0 -0
- data/lib/guile/2.2/ccache/srfi/srfi-27.go +0 -0
- data/lib/guile/2.2/ccache/srfi/srfi-28.go +0 -0
- data/lib/guile/2.2/ccache/srfi/srfi-31.go +0 -0
- data/lib/guile/2.2/ccache/srfi/srfi-34.go +0 -0
- data/lib/guile/2.2/ccache/srfi/srfi-35.go +0 -0
- data/lib/guile/2.2/ccache/srfi/srfi-37.go +0 -0
- data/lib/guile/2.2/ccache/srfi/srfi-38.go +0 -0
- data/lib/guile/2.2/ccache/srfi/srfi-39.go +0 -0
- data/lib/guile/2.2/ccache/srfi/srfi-4/gnu.go +0 -0
- data/lib/guile/2.2/ccache/srfi/srfi-4.go +0 -0
- data/lib/guile/2.2/ccache/srfi/srfi-41.go +0 -0
- data/lib/guile/2.2/ccache/srfi/srfi-42.go +0 -0
- data/lib/guile/2.2/ccache/srfi/srfi-43.go +0 -0
- data/lib/guile/2.2/ccache/srfi/srfi-45.go +0 -0
- data/lib/guile/2.2/ccache/srfi/srfi-6.go +0 -0
- data/lib/guile/2.2/ccache/srfi/srfi-60.go +0 -0
- data/lib/guile/2.2/ccache/srfi/srfi-64.go +0 -0
- data/lib/guile/2.2/ccache/srfi/srfi-67.go +0 -0
- data/lib/guile/2.2/ccache/srfi/srfi-69.go +0 -0
- data/lib/guile/2.2/ccache/srfi/srfi-71.go +0 -0
- data/lib/guile/2.2/ccache/srfi/srfi-8.go +0 -0
- data/lib/guile/2.2/ccache/srfi/srfi-88.go +0 -0
- data/lib/guile/2.2/ccache/srfi/srfi-9/gnu.go +0 -0
- data/lib/guile/2.2/ccache/srfi/srfi-9.go +0 -0
- data/lib/guile/2.2/ccache/srfi/srfi-98.go +0 -0
- data/lib/guile/2.2/ccache/statprof.go +0 -0
- data/lib/guile/2.2/ccache/sxml/apply-templates.go +0 -0
- data/lib/guile/2.2/ccache/sxml/fold.go +0 -0
- data/lib/guile/2.2/ccache/sxml/match.go +0 -0
- data/lib/guile/2.2/ccache/sxml/simple.go +0 -0
- data/lib/guile/2.2/ccache/sxml/ssax/input-parse.go +0 -0
- data/lib/guile/2.2/ccache/sxml/ssax.go +0 -0
- data/lib/guile/2.2/ccache/sxml/transform.go +0 -0
- data/lib/guile/2.2/ccache/sxml/xpath.go +0 -0
- data/lib/guile/2.2/ccache/system/base/ck.go +0 -0
- data/lib/guile/2.2/ccache/system/base/compile.go +0 -0
- data/lib/guile/2.2/ccache/system/base/lalr.go +0 -0
- data/lib/guile/2.2/ccache/system/base/language.go +0 -0
- data/lib/guile/2.2/ccache/system/base/message.go +0 -0
- data/lib/guile/2.2/ccache/system/base/pmatch.go +0 -0
- data/lib/guile/2.2/ccache/system/base/syntax.go +0 -0
- data/lib/guile/2.2/ccache/system/base/target.go +0 -0
- data/lib/guile/2.2/ccache/system/base/types.go +0 -0
- data/lib/guile/2.2/ccache/system/foreign-object.go +0 -0
- data/lib/guile/2.2/ccache/system/foreign.go +0 -0
- data/lib/guile/2.2/ccache/system/repl/command.go +0 -0
- data/lib/guile/2.2/ccache/system/repl/common.go +0 -0
- data/lib/guile/2.2/ccache/system/repl/coop-server.go +0 -0
- data/lib/guile/2.2/ccache/system/repl/debug.go +0 -0
- data/lib/guile/2.2/ccache/system/repl/error-handling.go +0 -0
- data/lib/guile/2.2/ccache/system/repl/repl.go +0 -0
- data/lib/guile/2.2/ccache/system/repl/server.go +0 -0
- data/lib/guile/2.2/ccache/system/syntax.go +0 -0
- data/lib/guile/2.2/ccache/system/vm/assembler.go +0 -0
- data/lib/guile/2.2/ccache/system/vm/coverage.go +0 -0
- data/lib/guile/2.2/ccache/system/vm/debug.go +0 -0
- data/lib/guile/2.2/ccache/system/vm/disassembler.go +0 -0
- data/lib/guile/2.2/ccache/system/vm/dwarf.go +0 -0
- data/lib/guile/2.2/ccache/system/vm/elf.go +0 -0
- data/lib/guile/2.2/ccache/system/vm/frame.go +0 -0
- data/lib/guile/2.2/ccache/system/vm/inspect.go +0 -0
- data/lib/guile/2.2/ccache/system/vm/linker.go +0 -0
- data/lib/guile/2.2/ccache/system/vm/loader.go +0 -0
- data/lib/guile/2.2/ccache/system/vm/program.go +0 -0
- data/lib/guile/2.2/ccache/system/vm/trace.go +0 -0
- data/lib/guile/2.2/ccache/system/vm/trap-state.go +0 -0
- data/lib/guile/2.2/ccache/system/vm/traps.go +0 -0
- data/lib/guile/2.2/ccache/system/vm/vm.go +0 -0
- data/lib/guile/2.2/ccache/system/xref.go +0 -0
- data/lib/guile/2.2/ccache/texinfo/docbook.go +0 -0
- data/lib/guile/2.2/ccache/texinfo/html.go +0 -0
- data/lib/guile/2.2/ccache/texinfo/indexing.go +0 -0
- data/lib/guile/2.2/ccache/texinfo/plain-text.go +0 -0
- data/lib/guile/2.2/ccache/texinfo/reflection.go +0 -0
- data/lib/guile/2.2/ccache/texinfo/serialize.go +0 -0
- data/lib/guile/2.2/ccache/texinfo/string-utils.go +0 -0
- data/lib/guile/2.2/ccache/texinfo.go +0 -0
- data/lib/guile/2.2/ccache/web/client.go +0 -0
- data/lib/guile/2.2/ccache/web/http.go +0 -0
- data/lib/guile/2.2/ccache/web/request.go +0 -0
- data/lib/guile/2.2/ccache/web/response.go +0 -0
- data/lib/guile/2.2/ccache/web/server/http.go +0 -0
- data/lib/guile/2.2/ccache/web/server.go +0 -0
- data/lib/guile/2.2/ccache/web/uri.go +0 -0
- data/lib/lilypond/2.24.1/ccache/lily/accreg.go +0 -0
- data/lib/lilypond/2.24.1/ccache/lily/auto-beam.go +0 -0
- data/lib/lilypond/2.24.1/ccache/lily/autochange.go +0 -0
- data/lib/lilypond/2.24.1/ccache/lily/backend-library.go +0 -0
- data/lib/lilypond/2.24.1/ccache/lily/bar-line.go +0 -0
- data/lib/lilypond/2.24.1/ccache/lily/breath.go +0 -0
- data/lib/lilypond/2.24.1/ccache/lily/c++.go +0 -0
- data/lib/lilypond/2.24.1/ccache/lily/chord-entry.go +0 -0
- data/lib/lilypond/2.24.1/ccache/lily/chord-ignatzek-names.go +0 -0
- data/lib/lilypond/2.24.1/ccache/lily/chord-name.go +0 -0
- data/lib/lilypond/2.24.1/ccache/lily/clip-region.go +0 -0
- data/lib/lilypond/2.24.1/ccache/lily/color.go +0 -0
- data/lib/lilypond/2.24.1/ccache/lily/curried-definitions.go +0 -0
- data/lib/lilypond/2.24.1/ccache/lily/define-context-properties.go +0 -0
- data/lib/lilypond/2.24.1/ccache/lily/define-event-classes.go +0 -0
- data/lib/lilypond/2.24.1/ccache/lily/define-grob-interfaces.go +0 -0
- data/lib/lilypond/2.24.1/ccache/lily/define-grob-properties.go +0 -0
- data/lib/lilypond/2.24.1/ccache/lily/define-grobs.go +0 -0
- data/lib/lilypond/2.24.1/ccache/lily/define-markup-commands.go +0 -0
- data/lib/lilypond/2.24.1/ccache/lily/define-music-callbacks.go +0 -0
- data/lib/lilypond/2.24.1/ccache/lily/define-music-display-methods.go +0 -0
- data/lib/lilypond/2.24.1/ccache/lily/define-music-properties.go +0 -0
- data/lib/lilypond/2.24.1/ccache/lily/define-music-types.go +0 -0
- data/lib/lilypond/2.24.1/ccache/lily/define-note-names.go +0 -0
- data/lib/lilypond/2.24.1/ccache/lily/define-stencil-commands.go +0 -0
- data/lib/lilypond/2.24.1/ccache/lily/define-woodwind-diagrams.go +0 -0
- data/lib/lilypond/2.24.1/ccache/lily/display-lily.go +0 -0
- data/lib/lilypond/2.24.1/ccache/lily/display-woodwind-diagrams.go +0 -0
- data/lib/lilypond/2.24.1/ccache/lily/file-cache.go +0 -0
- data/lib/lilypond/2.24.1/ccache/lily/flag-styles.go +0 -0
- data/lib/lilypond/2.24.1/ccache/lily/font-encodings.go +0 -0
- data/lib/lilypond/2.24.1/ccache/lily/font.go +0 -0
- data/lib/lilypond/2.24.1/ccache/lily/framework-cairo.go +0 -0
- data/lib/lilypond/2.24.1/ccache/lily/framework-ps.go +0 -0
- data/lib/lilypond/2.24.1/ccache/lily/framework-svg.go +0 -0
- data/lib/lilypond/2.24.1/ccache/lily/fret-diagrams.go +0 -0
- data/lib/lilypond/2.24.1/ccache/lily/graphviz.go +0 -0
- data/lib/lilypond/2.24.1/ccache/lily/harp-pedals.go +0 -0
- data/lib/lilypond/2.24.1/ccache/lily/layout-beam.go +0 -0
- data/lib/lilypond/2.24.1/ccache/lily/layout-slur.go +0 -0
- data/lib/lilypond/2.24.1/ccache/lily/lily-library.go +0 -0
- data/lib/lilypond/2.24.1/ccache/lily/lily.go +0 -0
- data/lib/lilypond/2.24.1/ccache/lily/ly-syntax-constructors.go +0 -0
- data/lib/lilypond/2.24.1/ccache/lily/markup-macros.go +0 -0
- data/lib/lilypond/2.24.1/ccache/lily/markup.go +0 -0
- data/lib/lilypond/2.24.1/ccache/lily/midi.go +0 -0
- data/lib/lilypond/2.24.1/ccache/lily/modal-transforms.go +0 -0
- data/lib/lilypond/2.24.1/ccache/lily/music-functions.go +0 -0
- data/lib/lilypond/2.24.1/ccache/lily/output-lib.go +0 -0
- data/lib/lilypond/2.24.1/ccache/lily/output-ps.go +0 -0
- data/lib/lilypond/2.24.1/ccache/lily/output-svg.go +0 -0
- data/lib/lilypond/2.24.1/ccache/lily/page.go +0 -0
- data/lib/lilypond/2.24.1/ccache/lily/paper-system.go +0 -0
- data/lib/lilypond/2.24.1/ccache/lily/paper.go +0 -0
- data/lib/lilypond/2.24.1/ccache/lily/parser-clef.go +0 -0
- data/lib/lilypond/2.24.1/ccache/lily/parser-ly-from-scheme.go +0 -0
- data/lib/lilypond/2.24.1/ccache/lily/part-combiner.go +0 -0
- data/lib/lilypond/2.24.1/ccache/lily/predefined-fretboards.go +0 -0
- data/lib/lilypond/2.24.1/ccache/lily/ps-to-png.go +0 -0
- data/lib/lilypond/2.24.1/ccache/lily/scheme-engravers.go +0 -0
- data/lib/lilypond/2.24.1/ccache/lily/scheme-performers.go +0 -0
- data/lib/lilypond/2.24.1/ccache/lily/script.go +0 -0
- data/lib/lilypond/2.24.1/ccache/lily/skyline.go +0 -0
- data/lib/lilypond/2.24.1/ccache/lily/song-util.go +0 -0
- data/lib/lilypond/2.24.1/ccache/lily/song.go +0 -0
- data/lib/lilypond/2.24.1/ccache/lily/stencil.go +0 -0
- data/lib/lilypond/2.24.1/ccache/lily/tablature.go +0 -0
- data/lib/lilypond/2.24.1/ccache/lily/time-signature-settings.go +0 -0
- data/lib/lilypond/2.24.1/ccache/lily/time-signature.go +0 -0
- data/lib/lilypond/2.24.1/ccache/lily/titling.go +0 -0
- data/lib/lilypond/2.24.1/ccache/lily/to-xml.go +0 -0
- data/lib/lilypond/2.24.1/ccache/lily/translation-functions.go +0 -0
- data/share/emacs/site-lisp/lilypond-font-lock.el +208 -0
- data/share/emacs/site-lisp/lilypond-indent.el +605 -0
- data/share/emacs/site-lisp/lilypond-init.el +21 -0
- data/share/emacs/site-lisp/lilypond-mode.el +1204 -0
- data/share/emacs/site-lisp/lilypond-song.el +556 -0
- data/share/emacs/site-lisp/lilypond-what-beat.el +279 -0
- data/share/emacs/site-lisp/lilypond-words.el +1428 -0
- data/share/guile/2.2/guile-procedures.txt +8860 -0
- data/share/guile/2.2/ice-9/and-let-star.scm +73 -0
- data/share/guile/2.2/ice-9/arrays.scm +70 -0
- data/share/guile/2.2/ice-9/atomic.scm +38 -0
- data/share/guile/2.2/ice-9/binary-ports.scm +53 -0
- data/share/guile/2.2/ice-9/boot-9.scm +4131 -0
- data/share/guile/2.2/ice-9/buffered-input.scm +109 -0
- data/share/guile/2.2/ice-9/calling.scm +326 -0
- data/share/guile/2.2/ice-9/channel.scm +170 -0
- data/share/guile/2.2/ice-9/command-line.scm +477 -0
- data/share/guile/2.2/ice-9/common-list.scm +278 -0
- data/share/guile/2.2/ice-9/control.scm +110 -0
- data/share/guile/2.2/ice-9/curried-definitions.scm +57 -0
- data/share/guile/2.2/ice-9/debug.scm +25 -0
- data/share/guile/2.2/ice-9/deprecated.scm +93 -0
- data/share/guile/2.2/ice-9/documentation.scm +203 -0
- data/share/guile/2.2/ice-9/eval-string.scm +90 -0
- data/share/guile/2.2/ice-9/eval.scm +723 -0
- data/share/guile/2.2/ice-9/expect.scm +171 -0
- data/share/guile/2.2/ice-9/fdes-finalizers.scm +25 -0
- data/share/guile/2.2/ice-9/format.scm +1626 -0
- data/share/guile/2.2/ice-9/ftw.scm +564 -0
- data/share/guile/2.2/ice-9/futures.scm +308 -0
- data/share/guile/2.2/ice-9/gap-buffer.scm +283 -0
- data/share/guile/2.2/ice-9/getopt-long.scm +371 -0
- data/share/guile/2.2/ice-9/hash-table.scm +45 -0
- data/share/guile/2.2/ice-9/hcons.scm +80 -0
- data/share/guile/2.2/ice-9/history.scm +65 -0
- data/share/guile/2.2/ice-9/i18n.scm +531 -0
- data/share/guile/2.2/ice-9/iconv.scm +95 -0
- data/share/guile/2.2/ice-9/lineio.scm +115 -0
- data/share/guile/2.2/ice-9/list.scm +36 -0
- data/share/guile/2.2/ice-9/local-eval.scm +261 -0
- data/share/guile/2.2/ice-9/ls.scm +94 -0
- data/share/guile/2.2/ice-9/mapping.scm +118 -0
- data/share/guile/2.2/ice-9/match.scm +59 -0
- data/share/guile/2.2/ice-9/match.upstream.scm +917 -0
- data/share/guile/2.2/ice-9/networking.scm +94 -0
- data/share/guile/2.2/ice-9/null.scm +34 -0
- data/share/guile/2.2/ice-9/occam-channel.scm +261 -0
- data/share/guile/2.2/ice-9/optargs.scm +381 -0
- data/share/guile/2.2/ice-9/peg/cache.scm +45 -0
- data/share/guile/2.2/ice-9/peg/codegen.scm +359 -0
- data/share/guile/2.2/ice-9/peg/simplify-tree.scm +97 -0
- data/share/guile/2.2/ice-9/peg/string-peg.scm +273 -0
- data/share/guile/2.2/ice-9/peg/using-parsers.scm +116 -0
- data/share/guile/2.2/ice-9/peg.scm +42 -0
- data/share/guile/2.2/ice-9/poe.scm +116 -0
- data/share/guile/2.2/ice-9/poll.scm +172 -0
- data/share/guile/2.2/ice-9/popen.scm +178 -0
- data/share/guile/2.2/ice-9/ports.scm +566 -0
- data/share/guile/2.2/ice-9/posix.scm +75 -0
- data/share/guile/2.2/ice-9/pretty-print.scm +483 -0
- data/share/guile/2.2/ice-9/psyntax-pp.scm +3542 -0
- data/share/guile/2.2/ice-9/psyntax.scm +3326 -0
- data/share/guile/2.2/ice-9/q.scm +153 -0
- data/share/guile/2.2/ice-9/quasisyntax.scm +136 -0
- data/share/guile/2.2/ice-9/r5rs.scm +45 -0
- data/share/guile/2.2/ice-9/r6rs-libraries.scm +242 -0
- data/share/guile/2.2/ice-9/rdelim.scm +208 -0
- data/share/guile/2.2/ice-9/receive.scm +26 -0
- data/share/guile/2.2/ice-9/regex.scm +229 -0
- data/share/guile/2.2/ice-9/runq.scm +241 -0
- data/share/guile/2.2/ice-9/rw.scm +27 -0
- data/share/guile/2.2/ice-9/safe-r5rs.scm +145 -0
- data/share/guile/2.2/ice-9/safe.scm +34 -0
- data/share/guile/2.2/ice-9/sandbox.scm +1399 -0
- data/share/guile/2.2/ice-9/save-stack.scm +58 -0
- data/share/guile/2.2/ice-9/scm-style-repl.scm +279 -0
- data/share/guile/2.2/ice-9/serialize.scm +114 -0
- data/share/guile/2.2/ice-9/session.scm +530 -0
- data/share/guile/2.2/ice-9/slib.scm +33 -0
- data/share/guile/2.2/ice-9/stack-catch.scm +47 -0
- data/share/guile/2.2/ice-9/streams.scm +168 -0
- data/share/guile/2.2/ice-9/string-fun.scm +280 -0
- data/share/guile/2.2/ice-9/suspendable-ports.scm +788 -0
- data/share/guile/2.2/ice-9/syncase.scm +37 -0
- data/share/guile/2.2/ice-9/textual-ports.scm +70 -0
- data/share/guile/2.2/ice-9/threads.scm +392 -0
- data/share/guile/2.2/ice-9/time.scm +58 -0
- data/share/guile/2.2/ice-9/top-repl.scm +78 -0
- data/share/guile/2.2/ice-9/unicode.scm +26 -0
- data/share/guile/2.2/ice-9/vlist.scm +595 -0
- data/share/guile/2.2/ice-9/weak-vector.scm +31 -0
- data/share/guile/2.2/language/brainfuck/compile-scheme.scm +123 -0
- data/share/guile/2.2/language/brainfuck/compile-tree-il.scm +184 -0
- data/share/guile/2.2/language/brainfuck/parse.scm +95 -0
- data/share/guile/2.2/language/brainfuck/spec.scm +43 -0
- data/share/guile/2.2/language/bytecode/spec.scm +42 -0
- data/share/guile/2.2/language/bytecode.scm +104 -0
- data/share/guile/2.2/language/cps/closure-conversion.scm +848 -0
- data/share/guile/2.2/language/cps/compile-bytecode.scm +610 -0
- data/share/guile/2.2/language/cps/constructors.scm +106 -0
- data/share/guile/2.2/language/cps/contification.scm +448 -0
- data/share/guile/2.2/language/cps/cse.scm +414 -0
- data/share/guile/2.2/language/cps/dce.scm +363 -0
- data/share/guile/2.2/language/cps/effects-analysis.scm +597 -0
- data/share/guile/2.2/language/cps/elide-values.scm +88 -0
- data/share/guile/2.2/language/cps/handle-interrupts.scm +69 -0
- data/share/guile/2.2/language/cps/intmap.scm +765 -0
- data/share/guile/2.2/language/cps/intset.scm +830 -0
- data/share/guile/2.2/language/cps/licm.scm +308 -0
- data/share/guile/2.2/language/cps/optimize.scm +135 -0
- data/share/guile/2.2/language/cps/peel-loops.scm +287 -0
- data/share/guile/2.2/language/cps/primitives.scm +141 -0
- data/share/guile/2.2/language/cps/prune-bailouts.scm +86 -0
- data/share/guile/2.2/language/cps/prune-top-level-scopes.scm +63 -0
- data/share/guile/2.2/language/cps/reify-primitives.scm +179 -0
- data/share/guile/2.2/language/cps/renumber.scm +217 -0
- data/share/guile/2.2/language/cps/rotate-loops.scm +239 -0
- data/share/guile/2.2/language/cps/self-references.scm +79 -0
- data/share/guile/2.2/language/cps/simplify.scm +274 -0
- data/share/guile/2.2/language/cps/slot-allocation.scm +1058 -0
- data/share/guile/2.2/language/cps/spec.scm +51 -0
- data/share/guile/2.2/language/cps/specialize-numbers.scm +724 -0
- data/share/guile/2.2/language/cps/specialize-primcalls.scm +87 -0
- data/share/guile/2.2/language/cps/split-rec.scm +174 -0
- data/share/guile/2.2/language/cps/type-checks.scm +72 -0
- data/share/guile/2.2/language/cps/type-fold.scm +455 -0
- data/share/guile/2.2/language/cps/types.scm +1826 -0
- data/share/guile/2.2/language/cps/utils.scm +550 -0
- data/share/guile/2.2/language/cps/verify.scm +304 -0
- data/share/guile/2.2/language/cps/with-cps.scm +145 -0
- data/share/guile/2.2/language/cps.scm +358 -0
- data/share/guile/2.2/language/ecmascript/array.scm +121 -0
- data/share/guile/2.2/language/ecmascript/base.scm +251 -0
- data/share/guile/2.2/language/ecmascript/compile-tree-il.scm +576 -0
- data/share/guile/2.2/language/ecmascript/function.scm +78 -0
- data/share/guile/2.2/language/ecmascript/impl.scm +169 -0
- data/share/guile/2.2/language/ecmascript/parse.scm +352 -0
- data/share/guile/2.2/language/ecmascript/spec.scm +37 -0
- data/share/guile/2.2/language/ecmascript/tokenize.scm +513 -0
- data/share/guile/2.2/language/elisp/bindings.scm +107 -0
- data/share/guile/2.2/language/elisp/boot.el +617 -0
- data/share/guile/2.2/language/elisp/compile-tree-il.scm +812 -0
- data/share/guile/2.2/language/elisp/falias.scm +47 -0
- data/share/guile/2.2/language/elisp/lexer.scm +430 -0
- data/share/guile/2.2/language/elisp/parser.scm +222 -0
- data/share/guile/2.2/language/elisp/runtime/function-slot.scm +63 -0
- data/share/guile/2.2/language/elisp/runtime/value-slot.scm +24 -0
- data/share/guile/2.2/language/elisp/runtime.scm +153 -0
- data/share/guile/2.2/language/elisp/spec.scm +43 -0
- data/share/guile/2.2/language/scheme/compile-tree-il.scm +33 -0
- data/share/guile/2.2/language/scheme/decompile-tree-il.scm +796 -0
- data/share/guile/2.2/language/scheme/spec.scm +63 -0
- data/share/guile/2.2/language/tree-il/analyze.scm +1568 -0
- data/share/guile/2.2/language/tree-il/canonicalize.scm +82 -0
- data/share/guile/2.2/language/tree-il/compile-cps.scm +1149 -0
- data/share/guile/2.2/language/tree-il/debug.scm +246 -0
- data/share/guile/2.2/language/tree-il/effects.scm +591 -0
- data/share/guile/2.2/language/tree-il/fix-letrec.scm +314 -0
- data/share/guile/2.2/language/tree-il/optimize.scm +43 -0
- data/share/guile/2.2/language/tree-il/peval.scm +1669 -0
- data/share/guile/2.2/language/tree-il/primitives.scm +630 -0
- data/share/guile/2.2/language/tree-il/spec.scm +46 -0
- data/share/guile/2.2/language/tree-il.scm +630 -0
- data/share/guile/2.2/language/value/spec.scm +30 -0
- data/share/guile/2.2/oop/goops/accessors.scm +72 -0
- data/share/guile/2.2/oop/goops/active-slot.scm +63 -0
- data/share/guile/2.2/oop/goops/composite-slot.scm +83 -0
- data/share/guile/2.2/oop/goops/describe.scm +189 -0
- data/share/guile/2.2/oop/goops/internal.scm +30 -0
- data/share/guile/2.2/oop/goops/save.scm +874 -0
- data/share/guile/2.2/oop/goops/simple.scm +30 -0
- data/share/guile/2.2/oop/goops/stklos.scm +74 -0
- data/share/guile/2.2/oop/goops.scm +3176 -0
- data/share/guile/2.2/rnrs/arithmetic/bitwise.scm +92 -0
- data/share/guile/2.2/rnrs/arithmetic/fixnums.scm +291 -0
- data/share/guile/2.2/rnrs/arithmetic/flonums.scm +203 -0
- data/share/guile/2.2/rnrs/base.scm +291 -0
- data/share/guile/2.2/rnrs/bytevectors.scm +83 -0
- data/share/guile/2.2/rnrs/conditions.scm +225 -0
- data/share/guile/2.2/rnrs/control.scm +22 -0
- data/share/guile/2.2/rnrs/enums.scm +152 -0
- data/share/guile/2.2/rnrs/eval.scm +39 -0
- data/share/guile/2.2/rnrs/exceptions.scm +276 -0
- data/share/guile/2.2/rnrs/files.scm +96 -0
- data/share/guile/2.2/rnrs/hashtables.scm +190 -0
- data/share/guile/2.2/rnrs/io/ports.scm +554 -0
- data/share/guile/2.2/rnrs/io/simple.scm +167 -0
- data/share/guile/2.2/rnrs/lists.scm +55 -0
- data/share/guile/2.2/rnrs/mutable-pairs.scm +23 -0
- data/share/guile/2.2/rnrs/mutable-strings.scm +23 -0
- data/share/guile/2.2/rnrs/programs.scm +22 -0
- data/share/guile/2.2/rnrs/r5rs.scm +34 -0
- data/share/guile/2.2/rnrs/records/inspection.scm +81 -0
- data/share/guile/2.2/rnrs/records/procedural.scm +289 -0
- data/share/guile/2.2/rnrs/records/syntactic.scm +248 -0
- data/share/guile/2.2/rnrs/sorting.scm +27 -0
- data/share/guile/2.2/rnrs/syntax-case.scm +68 -0
- data/share/guile/2.2/rnrs/unicode.scm +104 -0
- data/share/guile/2.2/rnrs.scm +289 -0
- data/share/guile/2.2/scripts/api-diff.scm +179 -0
- data/share/guile/2.2/scripts/autofrisk.scm +218 -0
- data/share/guile/2.2/scripts/compile.scm +273 -0
- data/share/guile/2.2/scripts/disassemble.scm +38 -0
- data/share/guile/2.2/scripts/display-commentary.scm +67 -0
- data/share/guile/2.2/scripts/doc-snarf.scm +439 -0
- data/share/guile/2.2/scripts/frisk.scm +290 -0
- data/share/guile/2.2/scripts/generate-autoload.scm +144 -0
- data/share/guile/2.2/scripts/help.scm +188 -0
- data/share/guile/2.2/scripts/lint.scm +318 -0
- data/share/guile/2.2/scripts/list.scm +91 -0
- data/share/guile/2.2/scripts/punify.scm +87 -0
- data/share/guile/2.2/scripts/read-rfc822.scm +131 -0
- data/share/guile/2.2/scripts/read-scheme-source.scm +282 -0
- data/share/guile/2.2/scripts/read-text-outline.scm +253 -0
- data/share/guile/2.2/scripts/scan-api.scm +223 -0
- data/share/guile/2.2/scripts/snarf-check-and-output-texi.scm +303 -0
- data/share/guile/2.2/scripts/snarf-guile-m4-docs.scm +86 -0
- data/share/guile/2.2/scripts/summarize-guile-TODO.scm +213 -0
- data/share/guile/2.2/scripts/use2dot.scm +110 -0
- data/share/guile/2.2/srfi/srfi-1.scm +1061 -0
- data/share/guile/2.2/srfi/srfi-10.scm +89 -0
- data/share/guile/2.2/srfi/srfi-11.scm +146 -0
- data/share/guile/2.2/srfi/srfi-111.scm +37 -0
- data/share/guile/2.2/srfi/srfi-13.scm +132 -0
- data/share/guile/2.2/srfi/srfi-14.scm +99 -0
- data/share/guile/2.2/srfi/srfi-16.scm +51 -0
- data/share/guile/2.2/srfi/srfi-17.scm +174 -0
- data/share/guile/2.2/srfi/srfi-18.scm +382 -0
- data/share/guile/2.2/srfi/srfi-19.scm +1470 -0
- data/share/guile/2.2/srfi/srfi-2.scm +31 -0
- data/share/guile/2.2/srfi/srfi-26.scm +66 -0
- data/share/guile/2.2/srfi/srfi-27.scm +96 -0
- data/share/guile/2.2/srfi/srfi-28.scm +34 -0
- data/share/guile/2.2/srfi/srfi-31.scm +35 -0
- data/share/guile/2.2/srfi/srfi-34.scm +84 -0
- data/share/guile/2.2/srfi/srfi-35.scm +351 -0
- data/share/guile/2.2/srfi/srfi-37.scm +234 -0
- data/share/guile/2.2/srfi/srfi-38.scm +207 -0
- data/share/guile/2.2/srfi/srfi-39.scm +55 -0
- data/share/guile/2.2/srfi/srfi-4/gnu.scm +80 -0
- data/share/guile/2.2/srfi/srfi-4.scm +118 -0
- data/share/guile/2.2/srfi/srfi-41.scm +505 -0
- data/share/guile/2.2/srfi/srfi-42/ec.scm +1053 -0
- data/share/guile/2.2/srfi/srfi-42.scm +66 -0
- data/share/guile/2.2/srfi/srfi-43.scm +1077 -0
- data/share/guile/2.2/srfi/srfi-45.scm +93 -0
- data/share/guile/2.2/srfi/srfi-6.scm +29 -0
- data/share/guile/2.2/srfi/srfi-60.scm +73 -0
- data/share/guile/2.2/srfi/srfi-64/testing.scm +1040 -0
- data/share/guile/2.2/srfi/srfi-64.scm +55 -0
- data/share/guile/2.2/srfi/srfi-67/compare.scm +686 -0
- data/share/guile/2.2/srfi/srfi-67.scm +88 -0
- data/share/guile/2.2/srfi/srfi-69.scm +336 -0
- data/share/guile/2.2/srfi/srfi-71.scm +267 -0
- data/share/guile/2.2/srfi/srfi-8.scm +31 -0
- data/share/guile/2.2/srfi/srfi-88.scm +53 -0
- data/share/guile/2.2/srfi/srfi-9/gnu.scm +168 -0
- data/share/guile/2.2/srfi/srfi-9.scm +351 -0
- data/share/guile/2.2/srfi/srfi-98.scm +44 -0
- data/share/guile/2.2/statprof.scm +988 -0
- data/share/guile/2.2/sxml/apply-templates.scm +102 -0
- data/share/guile/2.2/sxml/fold.scm +250 -0
- data/share/guile/2.2/sxml/match.scm +75 -0
- data/share/guile/2.2/sxml/simple.scm +408 -0
- data/share/guile/2.2/sxml/ssax/input-parse.scm +180 -0
- data/share/guile/2.2/sxml/ssax.scm +265 -0
- data/share/guile/2.2/sxml/sxml-match.ss +1181 -0
- data/share/guile/2.2/sxml/transform.scm +298 -0
- data/share/guile/2.2/sxml/upstream/SSAX.scm +3235 -0
- data/share/guile/2.2/sxml/upstream/SXML-tree-trans.scm +249 -0
- data/share/guile/2.2/sxml/upstream/SXPath-old.scm +1216 -0
- data/share/guile/2.2/sxml/upstream/assert.scm +35 -0
- data/share/guile/2.2/sxml/upstream/input-parse.scm +326 -0
- data/share/guile/2.2/sxml/xpath.scm +493 -0
- data/share/guile/2.2/system/base/ck.scm +55 -0
- data/share/guile/2.2/system/base/compile.scm +282 -0
- data/share/guile/2.2/system/base/lalr.scm +51 -0
- data/share/guile/2.2/system/base/lalr.upstream.scm +2096 -0
- data/share/guile/2.2/system/base/language.scm +119 -0
- data/share/guile/2.2/system/base/message.scm +238 -0
- data/share/guile/2.2/system/base/pmatch.scm +68 -0
- data/share/guile/2.2/system/base/syntax.scm +299 -0
- data/share/guile/2.2/system/base/target.scm +152 -0
- data/share/guile/2.2/system/base/types.scm +561 -0
- data/share/guile/2.2/system/foreign-object.scm +91 -0
- data/share/guile/2.2/system/foreign.scm +200 -0
- data/share/guile/2.2/system/repl/command.scm +946 -0
- data/share/guile/2.2/system/repl/common.scm +263 -0
- data/share/guile/2.2/system/repl/coop-server.scm +200 -0
- data/share/guile/2.2/system/repl/debug.scm +210 -0
- data/share/guile/2.2/system/repl/describe.scm +347 -0
- data/share/guile/2.2/system/repl/error-handling.scm +183 -0
- data/share/guile/2.2/system/repl/repl.scm +233 -0
- data/share/guile/2.2/system/repl/server.scm +332 -0
- data/share/guile/2.2/system/syntax.scm +33 -0
- data/share/guile/2.2/system/vm/assembler.scm +2614 -0
- data/share/guile/2.2/system/vm/coverage.scm +351 -0
- data/share/guile/2.2/system/vm/debug.scm +766 -0
- data/share/guile/2.2/system/vm/disassembler.scm +658 -0
- data/share/guile/2.2/system/vm/dwarf.scm +1852 -0
- data/share/guile/2.2/system/vm/elf.scm +1042 -0
- data/share/guile/2.2/system/vm/frame.scm +485 -0
- data/share/guile/2.2/system/vm/inspect.scm +188 -0
- data/share/guile/2.2/system/vm/linker.scm +732 -0
- data/share/guile/2.2/system/vm/loader.scm +27 -0
- data/share/guile/2.2/system/vm/program.scm +312 -0
- data/share/guile/2.2/system/vm/trace.scm +121 -0
- data/share/guile/2.2/system/vm/trap-state.scm +302 -0
- data/share/guile/2.2/system/vm/traps.scm +608 -0
- data/share/guile/2.2/system/vm/vm.scm +32 -0
- data/share/guile/2.2/system/xref.scm +369 -0
- data/share/guile/2.2/texinfo/docbook.scm +240 -0
- data/share/guile/2.2/texinfo/html.scm +279 -0
- data/share/guile/2.2/texinfo/indexing.scm +75 -0
- data/share/guile/2.2/texinfo/plain-text.scm +322 -0
- data/share/guile/2.2/texinfo/reflection.scm +585 -0
- data/share/guile/2.2/texinfo/serialize.scm +300 -0
- data/share/guile/2.2/texinfo/string-utils.scm +410 -0
- data/share/guile/2.2/texinfo.scm +1263 -0
- data/share/guile/2.2/web/client.scm +513 -0
- data/share/guile/2.2/web/http.scm +2043 -0
- data/share/guile/2.2/web/request.scm +326 -0
- data/share/guile/2.2/web/response.scm +379 -0
- data/share/guile/2.2/web/server/http.scm +183 -0
- data/share/guile/2.2/web/server.scm +397 -0
- data/share/guile/2.2/web/uri.scm +552 -0
- data/share/lilypond/2.24.1/fontconfig/0bd3dc0958fa2205aaaa8ebb13e2872b-le64.cache-8 +0 -0
- data/share/lilypond/2.24.1/fontconfig/188ac73a183f12857f63bb60a4a6d603-le64.cache-8 +0 -0
- data/share/lilypond/2.24.1/fontconfig/32b6488e5b8292a2e95c79d947e009e8-le64.cache-8 +0 -0
- data/share/lilypond/2.24.1/fontconfig/3830d5c3ddfd5cd38a049b759396e72e-le64.cache-8 +0 -0
- data/share/lilypond/2.24.1/fontconfig/3f7329c5293ffd510edef78f73874cfd-le64.cache-8 +0 -0
- data/share/lilypond/2.24.1/fontconfig/4c599c202bc5c08e2d34565a40eac3b2-le64.cache-8 +0 -0
- data/share/lilypond/2.24.1/fontconfig/57e423e26b20ab21d0f2f29c145174c3-le64.cache-8 +0 -0
- data/share/lilypond/2.24.1/fontconfig/7ef2298fde41cc6eeb7af42e48b7d293-le64.cache-8 +0 -0
- data/share/lilypond/2.24.1/fontconfig/826f6b6ef79022e2eac8af26bf4b62f2-le64.cache-8 +0 -0
- data/share/lilypond/2.24.1/fontconfig/945677eb7aeaf62f1d50efc3fb3ec7d8-le64.cache-8 +0 -0
- data/share/lilypond/2.24.1/fontconfig/95530828ff6c81d309f8258d8d02a23e-le64.cache-8 +0 -0
- data/share/lilypond/2.24.1/fontconfig/CACHEDIR.TAG +4 -0
- data/share/lilypond/2.24.1/fontconfig/bf3b770c553c462765856025a94f1ce6-le64.cache-8 +0 -0
- data/share/lilypond/2.24.1/fontconfig/c855463f699352c367813e37f3f70ea7-le64.cache-8 +0 -0
- data/share/lilypond/2.24.1/fontconfig/d3e5c4ee2ceb1fc347f91d4cefc53bc0-le64.cache-8 +0 -0
- data/share/lilypond/2.24.1/fontconfig/d589a48862398ed80a3d6066f4f56f4c-le64.cache-8 +0 -0
- data/share/lilypond/2.24.1/fontconfig/d82eb4fd963d448e2fcb7d7b793b5df3-le64.cache-8 +0 -0
- data/share/lilypond/2.24.1/fontconfig/e13b20fdb08344e0e664864cc2ede53d-le64.cache-8 +0 -0
- data/share/lilypond/2.24.1/fontconfig/e52a45a1c8c8fe895fc0fc8c4e6999b8-le64.cache-8 +0 -0
- data/share/lilypond/2.24.1/fontconfig/f1f2465696798768e9653f19e17ccdc8-le64.cache-8 +0 -0
- data/share/lilypond/2.24.1/fonts/00-lilypond-fonts.conf +99 -0
- data/share/lilypond/2.24.1/fonts/99-lilypond-fonts.conf +28 -0
- data/share/lilypond/2.24.1/fonts/otf/C059-BdIta.otf +0 -0
- data/share/lilypond/2.24.1/fonts/otf/C059-Bold.otf +0 -0
- data/share/lilypond/2.24.1/fonts/otf/C059-Italic.otf +0 -0
- data/share/lilypond/2.24.1/fonts/otf/C059-Roman.otf +0 -0
- data/share/lilypond/2.24.1/fonts/otf/NimbusMonoPS-Bold.otf +0 -0
- data/share/lilypond/2.24.1/fonts/otf/NimbusMonoPS-BoldItalic.otf +0 -0
- data/share/lilypond/2.24.1/fonts/otf/NimbusMonoPS-Italic.otf +0 -0
- data/share/lilypond/2.24.1/fonts/otf/NimbusMonoPS-Regular.otf +0 -0
- data/share/lilypond/2.24.1/fonts/otf/NimbusSans-Bold.otf +0 -0
- data/share/lilypond/2.24.1/fonts/otf/NimbusSans-BoldItalic.otf +0 -0
- data/share/lilypond/2.24.1/fonts/otf/NimbusSans-Italic.otf +0 -0
- data/share/lilypond/2.24.1/fonts/otf/NimbusSans-Regular.otf +0 -0
- data/share/lilypond/2.24.1/fonts/otf/emmentaler-11.otf +0 -0
- data/share/lilypond/2.24.1/fonts/otf/emmentaler-13.otf +0 -0
- data/share/lilypond/2.24.1/fonts/otf/emmentaler-14.otf +0 -0
- data/share/lilypond/2.24.1/fonts/otf/emmentaler-16.otf +0 -0
- data/share/lilypond/2.24.1/fonts/otf/emmentaler-18.otf +0 -0
- data/share/lilypond/2.24.1/fonts/otf/emmentaler-20.otf +0 -0
- data/share/lilypond/2.24.1/fonts/otf/emmentaler-23.otf +0 -0
- data/share/lilypond/2.24.1/fonts/otf/emmentaler-26.otf +0 -0
- data/share/lilypond/2.24.1/fonts/otf/emmentaler-brace.otf +0 -0
- data/share/lilypond/2.24.1/fonts/otf/texgyrecursor-bold.otf +0 -0
- data/share/lilypond/2.24.1/fonts/otf/texgyrecursor-bolditalic.otf +0 -0
- data/share/lilypond/2.24.1/fonts/otf/texgyrecursor-italic.otf +0 -0
- data/share/lilypond/2.24.1/fonts/otf/texgyrecursor-regular.otf +0 -0
- data/share/lilypond/2.24.1/fonts/otf/texgyreheros-bold.otf +0 -0
- data/share/lilypond/2.24.1/fonts/otf/texgyreheros-bolditalic.otf +0 -0
- data/share/lilypond/2.24.1/fonts/otf/texgyreheros-italic.otf +0 -0
- data/share/lilypond/2.24.1/fonts/otf/texgyreheros-regular.otf +0 -0
- data/share/lilypond/2.24.1/fonts/otf/texgyreschola-bold.otf +0 -0
- data/share/lilypond/2.24.1/fonts/otf/texgyreschola-bolditalic.otf +0 -0
- data/share/lilypond/2.24.1/fonts/otf/texgyreschola-italic.otf +0 -0
- data/share/lilypond/2.24.1/fonts/otf/texgyreschola-regular.otf +0 -0
- data/share/lilypond/2.24.1/fonts/source/common-modules-and-initialization.mf +26 -0
- data/share/lilypond/2.24.1/fonts/source/debugging-settings.mf +14 -0
- data/share/lilypond/2.24.1/fonts/source/declare-autometric-parameters.mf +9 -0
- data/share/lilypond/2.24.1/fonts/source/feta-accidentals.mf +58 -0
- data/share/lilypond/2.24.1/fonts/source/feta-accordion.mf +575 -0
- data/share/lilypond/2.24.1/fonts/source/feta-alphabet-generic.mf +16 -0
- data/share/lilypond/2.24.1/fonts/source/feta-alphabet11.mf +6 -0
- data/share/lilypond/2.24.1/fonts/source/feta-alphabet13.mf +6 -0
- data/share/lilypond/2.24.1/fonts/source/feta-alphabet14.mf +6 -0
- data/share/lilypond/2.24.1/fonts/source/feta-alphabet16.mf +6 -0
- data/share/lilypond/2.24.1/fonts/source/feta-alphabet18.mf +6 -0
- data/share/lilypond/2.24.1/fonts/source/feta-alphabet20.mf +6 -0
- data/share/lilypond/2.24.1/fonts/source/feta-alphabet23.mf +6 -0
- data/share/lilypond/2.24.1/fonts/source/feta-alphabet26.mf +6 -0
- data/share/lilypond/2.24.1/fonts/source/feta-arrow.mf +114 -0
- data/share/lilypond/2.24.1/fonts/source/feta-arrowheads.mf +171 -0
- data/share/lilypond/2.24.1/fonts/source/feta-autometric.mf +303 -0
- data/share/lilypond/2.24.1/fonts/source/feta-braces-a.mf +6 -0
- data/share/lilypond/2.24.1/fonts/source/feta-braces-b.mf +6 -0
- data/share/lilypond/2.24.1/fonts/source/feta-braces-c.mf +6 -0
- data/share/lilypond/2.24.1/fonts/source/feta-braces-d.mf +6 -0
- data/share/lilypond/2.24.1/fonts/source/feta-braces-e.mf +6 -0
- data/share/lilypond/2.24.1/fonts/source/feta-braces-f.mf +6 -0
- data/share/lilypond/2.24.1/fonts/source/feta-braces-g.mf +6 -0
- data/share/lilypond/2.24.1/fonts/source/feta-braces-generic.mf +47 -0
- data/share/lilypond/2.24.1/fonts/source/feta-braces-h.mf +6 -0
- data/share/lilypond/2.24.1/fonts/source/feta-braces-i.mf +6 -0
- data/share/lilypond/2.24.1/fonts/source/feta-braces.mf +125 -0
- data/share/lilypond/2.24.1/fonts/source/feta-brackettips.mf +100 -0
- data/share/lilypond/2.24.1/fonts/source/feta-clefs.mf +963 -0
- data/share/lilypond/2.24.1/fonts/source/feta-dots.mf +37 -0
- data/share/lilypond/2.24.1/fonts/source/feta-dynamics.mf +891 -0
- data/share/lilypond/2.24.1/fonts/source/feta-flags-generic.mf +17 -0
- data/share/lilypond/2.24.1/fonts/source/feta-flags.mf +926 -0
- data/share/lilypond/2.24.1/fonts/source/feta-flags11.mf +6 -0
- data/share/lilypond/2.24.1/fonts/source/feta-flags13.mf +6 -0
- data/share/lilypond/2.24.1/fonts/source/feta-flags14.mf +6 -0
- data/share/lilypond/2.24.1/fonts/source/feta-flags16.mf +6 -0
- data/share/lilypond/2.24.1/fonts/source/feta-flags18.mf +6 -0
- data/share/lilypond/2.24.1/fonts/source/feta-flags20.mf +6 -0
- data/share/lilypond/2.24.1/fonts/source/feta-flags23.mf +6 -0
- data/share/lilypond/2.24.1/fonts/source/feta-flags26.mf +6 -0
- data/share/lilypond/2.24.1/fonts/source/feta-flats.mf +668 -0
- data/share/lilypond/2.24.1/fonts/source/feta-macros.mf +506 -0
- data/share/lilypond/2.24.1/fonts/source/feta-naturals.mf +223 -0
- data/share/lilypond/2.24.1/fonts/source/feta-noteheads-generic.mf +17 -0
- data/share/lilypond/2.24.1/fonts/source/feta-noteheads.mf +2642 -0
- data/share/lilypond/2.24.1/fonts/source/feta-noteheads11.mf +6 -0
- data/share/lilypond/2.24.1/fonts/source/feta-noteheads13.mf +6 -0
- data/share/lilypond/2.24.1/fonts/source/feta-noteheads14.mf +6 -0
- data/share/lilypond/2.24.1/fonts/source/feta-noteheads16.mf +6 -0
- data/share/lilypond/2.24.1/fonts/source/feta-noteheads18.mf +6 -0
- data/share/lilypond/2.24.1/fonts/source/feta-noteheads20.mf +6 -0
- data/share/lilypond/2.24.1/fonts/source/feta-noteheads23.mf +6 -0
- data/share/lilypond/2.24.1/fonts/source/feta-noteheads26.mf +6 -0
- data/share/lilypond/2.24.1/fonts/source/feta-numbers.mf +1677 -0
- data/share/lilypond/2.24.1/fonts/source/feta-other-generic.mf +27 -0
- data/share/lilypond/2.24.1/fonts/source/feta-params.mf +323 -0
- data/share/lilypond/2.24.1/fonts/source/feta-parenthesis.mf +63 -0
- data/share/lilypond/2.24.1/fonts/source/feta-pedals.mf +355 -0
- data/share/lilypond/2.24.1/fonts/source/feta-rests.mf +890 -0
- data/share/lilypond/2.24.1/fonts/source/feta-scripts.mf +2206 -0
- data/share/lilypond/2.24.1/fonts/source/feta-sharps.mf +524 -0
- data/share/lilypond/2.24.1/fonts/source/feta-sori-koron.mf +325 -0
- data/share/lilypond/2.24.1/fonts/source/feta-ties.mf +72 -0
- data/share/lilypond/2.24.1/fonts/source/feta-timesignatures.mf +119 -0
- data/share/lilypond/2.24.1/fonts/source/feta-trills.mf +321 -0
- data/share/lilypond/2.24.1/fonts/source/feta11.mf +6 -0
- data/share/lilypond/2.24.1/fonts/source/feta13.mf +6 -0
- data/share/lilypond/2.24.1/fonts/source/feta14.mf +6 -0
- data/share/lilypond/2.24.1/fonts/source/feta16.mf +6 -0
- data/share/lilypond/2.24.1/fonts/source/feta18.mf +6 -0
- data/share/lilypond/2.24.1/fonts/source/feta20.mf +7 -0
- data/share/lilypond/2.24.1/fonts/source/feta23.mf +6 -0
- data/share/lilypond/2.24.1/fonts/source/feta26.mf +6 -0
- data/share/lilypond/2.24.1/fonts/source/parmesan-accidentals.mf +483 -0
- data/share/lilypond/2.24.1/fonts/source/parmesan-clefs.mf +1636 -0
- data/share/lilypond/2.24.1/fonts/source/parmesan-custodes.mf +503 -0
- data/share/lilypond/2.24.1/fonts/source/parmesan-dots.mf +62 -0
- data/share/lilypond/2.24.1/fonts/source/parmesan-flags.mf +319 -0
- data/share/lilypond/2.24.1/fonts/source/parmesan-macros.mf +225 -0
- data/share/lilypond/2.24.1/fonts/source/parmesan-noteheads-generic.mf +16 -0
- data/share/lilypond/2.24.1/fonts/source/parmesan-noteheads.mf +2191 -0
- data/share/lilypond/2.24.1/fonts/source/parmesan-noteheads11.mf +6 -0
- data/share/lilypond/2.24.1/fonts/source/parmesan-noteheads13.mf +6 -0
- data/share/lilypond/2.24.1/fonts/source/parmesan-noteheads14.mf +6 -0
- data/share/lilypond/2.24.1/fonts/source/parmesan-noteheads16.mf +6 -0
- data/share/lilypond/2.24.1/fonts/source/parmesan-noteheads18.mf +6 -0
- data/share/lilypond/2.24.1/fonts/source/parmesan-noteheads20.mf +6 -0
- data/share/lilypond/2.24.1/fonts/source/parmesan-noteheads23.mf +6 -0
- data/share/lilypond/2.24.1/fonts/source/parmesan-noteheads26.mf +6 -0
- data/share/lilypond/2.24.1/fonts/source/parmesan-other-generic.mf +24 -0
- data/share/lilypond/2.24.1/fonts/source/parmesan-rests.mf +428 -0
- data/share/lilypond/2.24.1/fonts/source/parmesan-scripts.mf +284 -0
- data/share/lilypond/2.24.1/fonts/source/parmesan-timesignatures.mf +402 -0
- data/share/lilypond/2.24.1/fonts/source/parmesan11.mf +6 -0
- data/share/lilypond/2.24.1/fonts/source/parmesan13.mf +6 -0
- data/share/lilypond/2.24.1/fonts/source/parmesan14.mf +6 -0
- data/share/lilypond/2.24.1/fonts/source/parmesan16.mf +6 -0
- data/share/lilypond/2.24.1/fonts/source/parmesan18.mf +6 -0
- data/share/lilypond/2.24.1/fonts/source/parmesan20.mf +6 -0
- data/share/lilypond/2.24.1/fonts/source/parmesan23.mf +6 -0
- data/share/lilypond/2.24.1/fonts/source/parmesan26.mf +6 -0
- data/share/lilypond/2.24.1/fonts/svg/emmentaler-11.svg +2525 -0
- data/share/lilypond/2.24.1/fonts/svg/emmentaler-11.woff +0 -0
- data/share/lilypond/2.24.1/fonts/svg/emmentaler-13.svg +2530 -0
- data/share/lilypond/2.24.1/fonts/svg/emmentaler-13.woff +0 -0
- data/share/lilypond/2.24.1/fonts/svg/emmentaler-14.svg +2526 -0
- data/share/lilypond/2.24.1/fonts/svg/emmentaler-14.woff +0 -0
- data/share/lilypond/2.24.1/fonts/svg/emmentaler-16.svg +2523 -0
- data/share/lilypond/2.24.1/fonts/svg/emmentaler-16.woff +0 -0
- data/share/lilypond/2.24.1/fonts/svg/emmentaler-18.svg +2519 -0
- data/share/lilypond/2.24.1/fonts/svg/emmentaler-18.woff +0 -0
- data/share/lilypond/2.24.1/fonts/svg/emmentaler-20.svg +2512 -0
- data/share/lilypond/2.24.1/fonts/svg/emmentaler-20.woff +0 -0
- data/share/lilypond/2.24.1/fonts/svg/emmentaler-23.svg +2506 -0
- data/share/lilypond/2.24.1/fonts/svg/emmentaler-23.woff +0 -0
- data/share/lilypond/2.24.1/fonts/svg/emmentaler-26.svg +2510 -0
- data/share/lilypond/2.24.1/fonts/svg/emmentaler-26.woff +0 -0
- data/share/lilypond/2.24.1/fonts/svg/emmentaler-brace.svg +1757 -0
- data/share/lilypond/2.24.1/fonts/svg/emmentaler-brace.woff +0 -0
- data/share/lilypond/2.24.1/ly/Welcome_to_LilyPond.ly +45 -0
- data/share/lilypond/2.24.1/ly/arabic.ly +185 -0
- data/share/lilypond/2.24.1/ly/articulate.ly +1013 -0
- data/share/lilypond/2.24.1/ly/bagpipe.ly +368 -0
- data/share/lilypond/2.24.1/ly/base-tkit.ly +135 -0
- data/share/lilypond/2.24.1/ly/catalan.ly +23 -0
- data/share/lilypond/2.24.1/ly/chord-modifiers-init.ly +63 -0
- data/share/lilypond/2.24.1/ly/chord-repetition-init.ly +60 -0
- data/share/lilypond/2.24.1/ly/context-mods-init.ly +119 -0
- data/share/lilypond/2.24.1/ly/declarations-init.ly +167 -0
- data/share/lilypond/2.24.1/ly/deutsch.ly +23 -0
- data/share/lilypond/2.24.1/ly/drumpitch-init.ly +366 -0
- data/share/lilypond/2.24.1/ly/dynamic-scripts-init.ly +54 -0
- data/share/lilypond/2.24.1/ly/english.ly +23 -0
- data/share/lilypond/2.24.1/ly/engraver-init.ly +1619 -0
- data/share/lilypond/2.24.1/ly/espanol.ly +23 -0
- data/share/lilypond/2.24.1/ly/event-listener.ly +241 -0
- data/share/lilypond/2.24.1/ly/festival.ly +38 -0
- data/share/lilypond/2.24.1/ly/generate-documentation.ly +7 -0
- data/share/lilypond/2.24.1/ly/grace-init.ly +56 -0
- data/share/lilypond/2.24.1/ly/graphviz-init.ly +174 -0
- data/share/lilypond/2.24.1/ly/gregorian.ly +268 -0
- data/share/lilypond/2.24.1/ly/guile-debugger.ly +55 -0
- data/share/lilypond/2.24.1/ly/hel-arabic.ly +307 -0
- data/share/lilypond/2.24.1/ly/init.ly +96 -0
- data/share/lilypond/2.24.1/ly/italiano.ly +23 -0
- data/share/lilypond/2.24.1/ly/lilypond-book-preamble.ly +47 -0
- data/share/lilypond/2.24.1/ly/lyrics-tkit.ly +68 -0
- data/share/lilypond/2.24.1/ly/makam.ly +166 -0
- data/share/lilypond/2.24.1/ly/midi-init.ly +59 -0
- data/share/lilypond/2.24.1/ly/music-functions-init.ly +2254 -0
- data/share/lilypond/2.24.1/ly/nederlands.ly +23 -0
- data/share/lilypond/2.24.1/ly/norsk.ly +23 -0
- data/share/lilypond/2.24.1/ly/paper-defaults-init.ly +188 -0
- data/share/lilypond/2.24.1/ly/performer-init.ly +398 -0
- data/share/lilypond/2.24.1/ly/persian.ly +335 -0
- data/share/lilypond/2.24.1/ly/piano-tkit.ly +61 -0
- data/share/lilypond/2.24.1/ly/portugues.ly +23 -0
- data/share/lilypond/2.24.1/ly/predefined-fretboards-init.ly +78 -0
- data/share/lilypond/2.24.1/ly/predefined-guitar-fretboards.ly +506 -0
- data/share/lilypond/2.24.1/ly/predefined-guitar-ninth-fretboards.ly +75 -0
- data/share/lilypond/2.24.1/ly/predefined-mandolin-fretboards.ly +876 -0
- data/share/lilypond/2.24.1/ly/predefined-ukulele-fretboards.ly +1285 -0
- data/share/lilypond/2.24.1/ly/property-init.ly +858 -0
- data/share/lilypond/2.24.1/ly/satb.ly +214 -0
- data/share/lilypond/2.24.1/ly/scale-definitions-init.ly +117 -0
- data/share/lilypond/2.24.1/ly/scheme-sandbox.ly +39 -0
- data/share/lilypond/2.24.1/ly/script-init.ly +94 -0
- data/share/lilypond/2.24.1/ly/spanners-init.ly +146 -0
- data/share/lilypond/2.24.1/ly/ssaattbb.ly +335 -0
- data/share/lilypond/2.24.1/ly/staff-tkit.ly +182 -0
- data/share/lilypond/2.24.1/ly/string-tunings-init.ly +94 -0
- data/share/lilypond/2.24.1/ly/suomi.ly +23 -0
- data/share/lilypond/2.24.1/ly/svenska.ly +23 -0
- data/share/lilypond/2.24.1/ly/swing.ly +362 -0
- data/share/lilypond/2.24.1/ly/text-replacements.ly +150 -0
- data/share/lilypond/2.24.1/ly/titling-init.ly +150 -0
- data/share/lilypond/2.24.1/ly/toc-init.ly +182 -0
- data/share/lilypond/2.24.1/ly/turkish-makam.ly +609 -0
- data/share/lilypond/2.24.1/ly/vlaams.ly +23 -0
- data/share/lilypond/2.24.1/ly/vocal-tkit.ly +103 -0
- data/share/lilypond/2.24.1/ly/voice-tkit.ly +34 -0
- data/share/lilypond/2.24.1/ps/encodingdefs.ps +2611 -0
- data/share/lilypond/2.24.1/ps/lilyponddefs.ps +49 -0
- data/share/lilypond/2.24.1/ps/music-drawing-routines.ps +329 -0
- data/share/lilypond/2.24.1/python/__pycache__/book_base.cpython-310.pyc +0 -0
- data/share/lilypond/2.24.1/python/__pycache__/book_docbook.cpython-310.pyc +0 -0
- data/share/lilypond/2.24.1/python/__pycache__/book_html.cpython-310.pyc +0 -0
- data/share/lilypond/2.24.1/python/__pycache__/book_latex.cpython-310.pyc +0 -0
- data/share/lilypond/2.24.1/python/__pycache__/book_snippets.cpython-310.pyc +0 -0
- data/share/lilypond/2.24.1/python/__pycache__/book_texinfo.cpython-310.pyc +0 -0
- data/share/lilypond/2.24.1/python/__pycache__/convertrules.cpython-310.pyc +0 -0
- data/share/lilypond/2.24.1/python/__pycache__/langdefs.cpython-310.pyc +0 -0
- data/share/lilypond/2.24.1/python/__pycache__/lilylib.cpython-310.pyc +0 -0
- data/share/lilypond/2.24.1/python/__pycache__/midi.cpython-310.pyc +0 -0
- data/share/lilypond/2.24.1/python/__pycache__/musicexp.cpython-310.pyc +0 -0
- data/share/lilypond/2.24.1/python/__pycache__/musicxml.cpython-310.pyc +0 -0
- data/share/lilypond/2.24.1/python/__pycache__/musicxml2ly_conversion.cpython-310.pyc +0 -0
- data/share/lilypond/2.24.1/python/__pycache__/utilities.cpython-310.pyc +0 -0
- data/share/lilypond/2.24.1/python/book_base.py +331 -0
- data/share/lilypond/2.24.1/python/book_docbook.py +154 -0
- data/share/lilypond/2.24.1/python/book_html.py +178 -0
- data/share/lilypond/2.24.1/python/book_latex.py +373 -0
- data/share/lilypond/2.24.1/python/book_snippets.py +1052 -0
- data/share/lilypond/2.24.1/python/book_texinfo.py +437 -0
- data/share/lilypond/2.24.1/python/convertrules.py +4764 -0
- data/share/lilypond/2.24.1/python/langdefs.py +131 -0
- data/share/lilypond/2.24.1/python/lilylib.py +141 -0
- data/share/lilypond/2.24.1/python/midi.py +212 -0
- data/share/lilypond/2.24.1/python/musicexp.py +2781 -0
- data/share/lilypond/2.24.1/python/musicxml.py +1905 -0
- data/share/lilypond/2.24.1/python/musicxml2ly_conversion.py +80 -0
- data/share/lilypond/2.24.1/python/utilities.py +280 -0
- data/share/lilypond/2.24.1/scm/lily/accreg.scm +579 -0
- data/share/lilypond/2.24.1/scm/lily/auto-beam.scm +163 -0
- data/share/lilypond/2.24.1/scm/lily/autochange.scm +100 -0
- data/share/lilypond/2.24.1/scm/lily/backend-library.scm +593 -0
- data/share/lilypond/2.24.1/scm/lily/bar-line.scm +1281 -0
- data/share/lilypond/2.24.1/scm/lily/breath.scm +74 -0
- data/share/lilypond/2.24.1/scm/lily/c++.scm +174 -0
- data/share/lilypond/2.24.1/scm/lily/chord-entry.scm +278 -0
- data/share/lilypond/2.24.1/scm/lily/chord-ignatzek-names.scm +304 -0
- data/share/lilypond/2.24.1/scm/lily/chord-name.scm +217 -0
- data/share/lilypond/2.24.1/scm/lily/clip-region.scm +87 -0
- data/share/lilypond/2.24.1/scm/lily/color.scm +757 -0
- data/share/lilypond/2.24.1/scm/lily/curried-definitions.scm +68 -0
- data/share/lilypond/2.24.1/scm/lily/define-context-properties.scm +939 -0
- data/share/lilypond/2.24.1/scm/lily/define-event-classes.scm +142 -0
- data/share/lilypond/2.24.1/scm/lily/define-grob-interfaces.scm +640 -0
- data/share/lilypond/2.24.1/scm/lily/define-grob-properties.scm +1647 -0
- data/share/lilypond/2.24.1/scm/lily/define-grobs.scm +4027 -0
- data/share/lilypond/2.24.1/scm/lily/define-markup-commands.scm +5737 -0
- data/share/lilypond/2.24.1/scm/lily/define-music-callbacks.scm +257 -0
- data/share/lilypond/2.24.1/scm/lily/define-music-display-methods.scm +1350 -0
- data/share/lilypond/2.24.1/scm/lily/define-music-properties.scm +242 -0
- data/share/lilypond/2.24.1/scm/lily/define-music-types.scm +983 -0
- data/share/lilypond/2.24.1/scm/lily/define-note-names.scm +1421 -0
- data/share/lilypond/2.24.1/scm/lily/define-stencil-commands.scm +71 -0
- data/share/lilypond/2.24.1/scm/lily/define-woodwind-diagrams.scm +1215 -0
- data/share/lilypond/2.24.1/scm/lily/display-lily.scm +315 -0
- data/share/lilypond/2.24.1/scm/lily/display-woodwind-diagrams.scm +1985 -0
- data/share/lilypond/2.24.1/scm/lily/document-backend.scm +307 -0
- data/share/lilypond/2.24.1/scm/lily/document-context-mods.scm +98 -0
- data/share/lilypond/2.24.1/scm/lily/document-functions.scm +169 -0
- data/share/lilypond/2.24.1/scm/lily/document-identifiers.scm +76 -0
- data/share/lilypond/2.24.1/scm/lily/document-markup.scm +158 -0
- data/share/lilypond/2.24.1/scm/lily/document-music.scm +146 -0
- data/share/lilypond/2.24.1/scm/lily/document-outside-staff-priorities.scm +40 -0
- data/share/lilypond/2.24.1/scm/lily/document-paper-sizes.scm +71 -0
- data/share/lilypond/2.24.1/scm/lily/document-translation.scm +318 -0
- data/share/lilypond/2.24.1/scm/lily/document-type-predicates.scm +85 -0
- data/share/lilypond/2.24.1/scm/lily/documentation-generate.scm +259 -0
- data/share/lilypond/2.24.1/scm/lily/documentation-lib.scm +207 -0
- data/share/lilypond/2.24.1/scm/lily/file-cache.scm +28 -0
- data/share/lilypond/2.24.1/scm/lily/flag-styles.scm +249 -0
- data/share/lilypond/2.24.1/scm/lily/font-encodings.scm +1242 -0
- data/share/lilypond/2.24.1/scm/lily/font.scm +303 -0
- data/share/lilypond/2.24.1/scm/lily/framework-cairo.scm +26 -0
- data/share/lilypond/2.24.1/scm/lily/framework-ps.scm +896 -0
- data/share/lilypond/2.24.1/scm/lily/framework-svg.scm +172 -0
- data/share/lilypond/2.24.1/scm/lily/fret-diagrams.scm +1261 -0
- data/share/lilypond/2.24.1/scm/lily/graphviz.scm +78 -0
- data/share/lilypond/2.24.1/scm/lily/guile-debugger.scm +90 -0
- data/share/lilypond/2.24.1/scm/lily/harp-pedals.scm +172 -0
- data/share/lilypond/2.24.1/scm/lily/hyphenate-internal-words.scm +51 -0
- data/share/lilypond/2.24.1/scm/lily/layout-beam.scm +73 -0
- data/share/lilypond/2.24.1/scm/lily/layout-slur.scm +45 -0
- data/share/lilypond/2.24.1/scm/lily/lily-library.scm +1446 -0
- data/share/lilypond/2.24.1/scm/lily/lily-sort.scm +116 -0
- data/share/lilypond/2.24.1/scm/lily/lily.scm +929 -0
- data/share/lilypond/2.24.1/scm/lily/ly-syntax-constructors.scm +374 -0
- data/share/lilypond/2.24.1/scm/lily/markup-macros.scm +493 -0
- data/share/lilypond/2.24.1/scm/lily/markup.scm +126 -0
- data/share/lilypond/2.24.1/scm/lily/midi.scm +258 -0
- data/share/lilypond/2.24.1/scm/lily/modal-transforms.scm +337 -0
- data/share/lilypond/2.24.1/scm/lily/music-functions.scm +2878 -0
- data/share/lilypond/2.24.1/scm/lily/output-lib.scm +3377 -0
- data/share/lilypond/2.24.1/scm/lily/output-ps.scm +335 -0
- data/share/lilypond/2.24.1/scm/lily/output-svg.scm +684 -0
- data/share/lilypond/2.24.1/scm/lily/page.scm +321 -0
- data/share/lilypond/2.24.1/scm/lily/paper-system.scm +271 -0
- data/share/lilypond/2.24.1/scm/lily/paper.scm +376 -0
- data/share/lilypond/2.24.1/scm/lily/parser-clef.scm +205 -0
- data/share/lilypond/2.24.1/scm/lily/parser-ly-from-scheme.scm +170 -0
- data/share/lilypond/2.24.1/scm/lily/part-combiner.scm +998 -0
- data/share/lilypond/2.24.1/scm/lily/predefined-fretboards.scm +54 -0
- data/share/lilypond/2.24.1/scm/lily/ps-to-png.scm +182 -0
- data/share/lilypond/2.24.1/scm/lily/scheme-engravers.scm +1813 -0
- data/share/lilypond/2.24.1/scm/lily/scheme-performers.scm +126 -0
- data/share/lilypond/2.24.1/scm/lily/script.scm +416 -0
- data/share/lilypond/2.24.1/scm/lily/skyline.scm +25 -0
- data/share/lilypond/2.24.1/scm/lily/song-util.scm +191 -0
- data/share/lilypond/2.24.1/scm/lily/song.scm +853 -0
- data/share/lilypond/2.24.1/scm/lily/stencil.scm +998 -0
- data/share/lilypond/2.24.1/scm/lily/tablature.scm +392 -0
- data/share/lilypond/2.24.1/scm/lily/time-signature-settings.scm +473 -0
- data/share/lilypond/2.24.1/scm/lily/time-signature.scm +35 -0
- data/share/lilypond/2.24.1/scm/lily/titling.scm +99 -0
- data/share/lilypond/2.24.1/scm/lily/to-xml.scm +254 -0
- data/share/lilypond/2.24.1/scm/lily/translation-functions.scm +1169 -0
- data/share/lilypond/2.24.1/vim/compiler/lilypond.vim +36 -0
- data/share/lilypond/2.24.1/vim/ftdetect/lilypond.vim +4 -0
- data/share/lilypond/2.24.1/vim/ftplugin/lilypond.vim +91 -0
- data/share/lilypond/2.24.1/vim/indent/lilypond.vim +79 -0
- data/share/lilypond/2.24.1/vim/syntax/lilypond-words +1408 -0
- data/share/lilypond/2.24.1/vim/syntax/lilypond-words.vim +3 -0
- data/share/lilypond/2.24.1/vim/syntax/lilypond.vim +104 -0
- data/share/locale/ca/LC_MESSAGES/lilypond.mo +0 -0
- data/share/locale/cs/LC_MESSAGES/lilypond.mo +0 -0
- data/share/locale/da/LC_MESSAGES/lilypond.mo +0 -0
- data/share/locale/de/LC_MESSAGES/lilypond.mo +0 -0
- data/share/locale/el/LC_MESSAGES/lilypond.mo +0 -0
- data/share/locale/eo/LC_MESSAGES/lilypond.mo +0 -0
- data/share/locale/es/LC_MESSAGES/lilypond.mo +0 -0
- data/share/locale/fi/LC_MESSAGES/lilypond.mo +0 -0
- data/share/locale/fr/LC_MESSAGES/lilypond.mo +0 -0
- data/share/locale/it/LC_MESSAGES/lilypond.mo +0 -0
- data/share/locale/ja/LC_MESSAGES/lilypond.mo +0 -0
- data/share/locale/nl/LC_MESSAGES/lilypond.mo +0 -0
- data/share/locale/ru/LC_MESSAGES/lilypond.mo +0 -0
- data/share/locale/sv/LC_MESSAGES/lilypond.mo +0 -0
- data/share/locale/tr/LC_MESSAGES/lilypond.mo +0 -0
- data/share/locale/uk/LC_MESSAGES/lilypond.mo +0 -0
- data/share/locale/vi/LC_MESSAGES/lilypond.mo +0 -0
- data/share/locale/zh_CN/LC_MESSAGES/lilypond.mo +0 -0
- data/share/locale/zh_TW/LC_MESSAGES/lilypond.mo +0 -0
- metadata +1108 -1
|
@@ -0,0 +1,1077 @@
|
|
|
1
|
+
;;; srfi-43.scm -- SRFI 43 Vector library
|
|
2
|
+
|
|
3
|
+
;; Copyright (C) 2014 Free Software Foundation, Inc.
|
|
4
|
+
;;
|
|
5
|
+
;; This library is free software; you can redistribute it and/or
|
|
6
|
+
;; modify it under the terms of the GNU Lesser General Public
|
|
7
|
+
;; License as published by the Free Software Foundation; either
|
|
8
|
+
;; version 3 of the License, or (at your option) any later version.
|
|
9
|
+
;;
|
|
10
|
+
;; This library is distributed in the hope that it will be useful,
|
|
11
|
+
;; but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
12
|
+
;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
13
|
+
;; Lesser General Public License for more details.
|
|
14
|
+
;;
|
|
15
|
+
;; You should have received a copy of the GNU Lesser General Public
|
|
16
|
+
;; License along with this library; if not, write to the Free Software
|
|
17
|
+
;; Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
|
18
|
+
|
|
19
|
+
;;; Author: Mark H Weaver <mhw@netris.org>
|
|
20
|
+
|
|
21
|
+
(define-module (srfi srfi-43)
|
|
22
|
+
#:use-module (srfi srfi-1)
|
|
23
|
+
#:use-module (srfi srfi-8)
|
|
24
|
+
#:re-export (make-vector vector vector? vector-ref vector-set!
|
|
25
|
+
vector-length)
|
|
26
|
+
#:replace (vector-copy vector-fill! list->vector vector->list)
|
|
27
|
+
#:export (vector-empty? vector= vector-unfold vector-unfold-right
|
|
28
|
+
vector-reverse-copy
|
|
29
|
+
vector-append vector-concatenate
|
|
30
|
+
vector-fold vector-fold-right
|
|
31
|
+
vector-map vector-map!
|
|
32
|
+
vector-for-each vector-count
|
|
33
|
+
vector-index vector-index-right
|
|
34
|
+
vector-skip vector-skip-right
|
|
35
|
+
vector-binary-search
|
|
36
|
+
vector-any vector-every
|
|
37
|
+
vector-swap! vector-reverse!
|
|
38
|
+
vector-copy! vector-reverse-copy!
|
|
39
|
+
reverse-vector->list
|
|
40
|
+
reverse-list->vector))
|
|
41
|
+
|
|
42
|
+
(cond-expand-provide (current-module) '(srfi-43))
|
|
43
|
+
|
|
44
|
+
(define (error-from who msg . args)
|
|
45
|
+
(apply error
|
|
46
|
+
(string-append (symbol->string who) ": " msg)
|
|
47
|
+
args))
|
|
48
|
+
|
|
49
|
+
(define-syntax-rule (assert-nonneg-exact-integer k who)
|
|
50
|
+
(unless (and (exact-integer? k)
|
|
51
|
+
(not (negative? k)))
|
|
52
|
+
(error-from who "expected non-negative exact integer, got" k)))
|
|
53
|
+
|
|
54
|
+
(define-syntax-rule (assert-procedure f who)
|
|
55
|
+
(unless (procedure? f)
|
|
56
|
+
(error-from who "expected procedure, got" f)))
|
|
57
|
+
|
|
58
|
+
(define-syntax-rule (assert-vector v who)
|
|
59
|
+
(unless (vector? v)
|
|
60
|
+
(error-from who "expected vector, got" v)))
|
|
61
|
+
|
|
62
|
+
(define-syntax-rule (assert-valid-index i len who)
|
|
63
|
+
(unless (and (exact-integer? i)
|
|
64
|
+
(<= 0 i len))
|
|
65
|
+
(error-from who "invalid index" i)))
|
|
66
|
+
|
|
67
|
+
(define-syntax-rule (assert-valid-start start len who)
|
|
68
|
+
(unless (and (exact-integer? start)
|
|
69
|
+
(<= 0 start len))
|
|
70
|
+
(error-from who "invalid start index" start)))
|
|
71
|
+
|
|
72
|
+
(define-syntax-rule (assert-valid-range start end len who)
|
|
73
|
+
(unless (and (exact-integer? start)
|
|
74
|
+
(exact-integer? end)
|
|
75
|
+
(<= 0 start end len))
|
|
76
|
+
(error-from who "invalid index range" start end)))
|
|
77
|
+
|
|
78
|
+
(define-syntax-rule (assert-vectors vs who)
|
|
79
|
+
(let loop ((vs vs))
|
|
80
|
+
(unless (null? vs)
|
|
81
|
+
(assert-vector (car vs) who)
|
|
82
|
+
(loop (cdr vs)))))
|
|
83
|
+
|
|
84
|
+
;; Return the length of the shortest vector in VS.
|
|
85
|
+
;; VS must have at least one element.
|
|
86
|
+
(define (min-length vs)
|
|
87
|
+
(let loop ((vs (cdr vs))
|
|
88
|
+
(result (vector-length (car vs))))
|
|
89
|
+
(if (null? vs)
|
|
90
|
+
result
|
|
91
|
+
(loop (cdr vs) (min result (vector-length (car vs)))))))
|
|
92
|
+
|
|
93
|
+
;; Return a list of the Ith elements of the vectors in VS.
|
|
94
|
+
(define (vectors-ref vs i)
|
|
95
|
+
(let loop ((vs vs) (xs '()))
|
|
96
|
+
(if (null? vs)
|
|
97
|
+
(reverse! xs)
|
|
98
|
+
(loop (cdr vs) (cons (vector-ref (car vs) i)
|
|
99
|
+
xs)))))
|
|
100
|
+
|
|
101
|
+
(define vector-unfold
|
|
102
|
+
(case-lambda
|
|
103
|
+
"(vector-unfold f length initial-seed ...) -> vector
|
|
104
|
+
|
|
105
|
+
The fundamental vector constructor. Create a vector whose length is
|
|
106
|
+
LENGTH and iterates across each index k from 0 up to LENGTH - 1,
|
|
107
|
+
applying F at each iteration to the current index and current seeds, in
|
|
108
|
+
that order, to receive n + 1 values: the element to put in the kth slot
|
|
109
|
+
of the new vector, and n new seeds for the next iteration. It is an
|
|
110
|
+
error for the number of seeds to vary between iterations."
|
|
111
|
+
((f len)
|
|
112
|
+
(assert-procedure f 'vector-unfold)
|
|
113
|
+
(assert-nonneg-exact-integer len 'vector-unfold)
|
|
114
|
+
(let ((v (make-vector len)))
|
|
115
|
+
(let loop ((i 0))
|
|
116
|
+
(unless (= i len)
|
|
117
|
+
(vector-set! v i (f i))
|
|
118
|
+
(loop (+ i 1))))
|
|
119
|
+
v))
|
|
120
|
+
((f len seed)
|
|
121
|
+
(assert-procedure f 'vector-unfold)
|
|
122
|
+
(assert-nonneg-exact-integer len 'vector-unfold)
|
|
123
|
+
(let ((v (make-vector len)))
|
|
124
|
+
(let loop ((i 0) (seed seed))
|
|
125
|
+
(unless (= i len)
|
|
126
|
+
(receive (x seed) (f i seed)
|
|
127
|
+
(vector-set! v i x)
|
|
128
|
+
(loop (+ i 1) seed))))
|
|
129
|
+
v))
|
|
130
|
+
((f len seed1 seed2)
|
|
131
|
+
(assert-procedure f 'vector-unfold)
|
|
132
|
+
(assert-nonneg-exact-integer len 'vector-unfold)
|
|
133
|
+
(let ((v (make-vector len)))
|
|
134
|
+
(let loop ((i 0) (seed1 seed1) (seed2 seed2))
|
|
135
|
+
(unless (= i len)
|
|
136
|
+
(receive (x seed1 seed2) (f i seed1 seed2)
|
|
137
|
+
(vector-set! v i x)
|
|
138
|
+
(loop (+ i 1) seed1 seed2))))
|
|
139
|
+
v))
|
|
140
|
+
((f len . seeds)
|
|
141
|
+
(assert-procedure f 'vector-unfold)
|
|
142
|
+
(assert-nonneg-exact-integer len 'vector-unfold)
|
|
143
|
+
(let ((v (make-vector len)))
|
|
144
|
+
(let loop ((i 0) (seeds seeds))
|
|
145
|
+
(unless (= i len)
|
|
146
|
+
(receive (x . seeds) (apply f i seeds)
|
|
147
|
+
(vector-set! v i x)
|
|
148
|
+
(loop (+ i 1) seeds))))
|
|
149
|
+
v))))
|
|
150
|
+
|
|
151
|
+
(define vector-unfold-right
|
|
152
|
+
(case-lambda
|
|
153
|
+
"(vector-unfold-right f length initial-seed ...) -> vector
|
|
154
|
+
|
|
155
|
+
The fundamental vector constructor. Create a vector whose length is
|
|
156
|
+
LENGTH and iterates across each index k from LENGTH - 1 down to 0,
|
|
157
|
+
applying F at each iteration to the current index and current seeds, in
|
|
158
|
+
that order, to receive n + 1 values: the element to put in the kth slot
|
|
159
|
+
of the new vector, and n new seeds for the next iteration. It is an
|
|
160
|
+
error for the number of seeds to vary between iterations."
|
|
161
|
+
((f len)
|
|
162
|
+
(assert-procedure f 'vector-unfold-right)
|
|
163
|
+
(assert-nonneg-exact-integer len 'vector-unfold-right)
|
|
164
|
+
(let ((v (make-vector len)))
|
|
165
|
+
(let loop ((i (- len 1)))
|
|
166
|
+
(unless (negative? i)
|
|
167
|
+
(vector-set! v i (f i))
|
|
168
|
+
(loop (- i 1))))
|
|
169
|
+
v))
|
|
170
|
+
((f len seed)
|
|
171
|
+
(assert-procedure f 'vector-unfold-right)
|
|
172
|
+
(assert-nonneg-exact-integer len 'vector-unfold-right)
|
|
173
|
+
(let ((v (make-vector len)))
|
|
174
|
+
(let loop ((i (- len 1)) (seed seed))
|
|
175
|
+
(unless (negative? i)
|
|
176
|
+
(receive (x seed) (f i seed)
|
|
177
|
+
(vector-set! v i x)
|
|
178
|
+
(loop (- i 1) seed))))
|
|
179
|
+
v))
|
|
180
|
+
((f len seed1 seed2)
|
|
181
|
+
(assert-procedure f 'vector-unfold-right)
|
|
182
|
+
(assert-nonneg-exact-integer len 'vector-unfold-right)
|
|
183
|
+
(let ((v (make-vector len)))
|
|
184
|
+
(let loop ((i (- len 1)) (seed1 seed1) (seed2 seed2))
|
|
185
|
+
(unless (negative? i)
|
|
186
|
+
(receive (x seed1 seed2) (f i seed1 seed2)
|
|
187
|
+
(vector-set! v i x)
|
|
188
|
+
(loop (- i 1) seed1 seed2))))
|
|
189
|
+
v))
|
|
190
|
+
((f len . seeds)
|
|
191
|
+
(assert-procedure f 'vector-unfold-right)
|
|
192
|
+
(assert-nonneg-exact-integer len 'vector-unfold-right)
|
|
193
|
+
(let ((v (make-vector len)))
|
|
194
|
+
(let loop ((i (- len 1)) (seeds seeds))
|
|
195
|
+
(unless (negative? i)
|
|
196
|
+
(receive (x . seeds) (apply f i seeds)
|
|
197
|
+
(vector-set! v i x)
|
|
198
|
+
(loop (- i 1) seeds))))
|
|
199
|
+
v))))
|
|
200
|
+
|
|
201
|
+
(define guile-vector-copy (@ (guile) vector-copy))
|
|
202
|
+
|
|
203
|
+
;; TODO: Enhance Guile core 'vector-copy' to do this.
|
|
204
|
+
(define vector-copy
|
|
205
|
+
(case-lambda*
|
|
206
|
+
"(vector-copy vec [start [end [fill]]]) -> vector
|
|
207
|
+
|
|
208
|
+
Allocate a new vector whose length is END - START and fills it with
|
|
209
|
+
elements from vec, taking elements from vec starting at index START
|
|
210
|
+
and stopping at index END. START defaults to 0 and END defaults to
|
|
211
|
+
the value of (vector-length VEC). If END extends beyond the length of
|
|
212
|
+
VEC, the slots in the new vector that obviously cannot be filled by
|
|
213
|
+
elements from VEC are filled with FILL, whose default value is
|
|
214
|
+
unspecified."
|
|
215
|
+
((v) (guile-vector-copy v))
|
|
216
|
+
((v start)
|
|
217
|
+
(assert-vector v 'vector-copy)
|
|
218
|
+
(let ((len (vector-length v)))
|
|
219
|
+
(assert-valid-start start len 'vector-copy)
|
|
220
|
+
(let ((result (make-vector (- len start))))
|
|
221
|
+
(vector-move-left! v start len result 0)
|
|
222
|
+
result)))
|
|
223
|
+
((v start end #:optional (fill *unspecified*))
|
|
224
|
+
(assert-vector v 'vector-copy)
|
|
225
|
+
(let ((len (vector-length v)))
|
|
226
|
+
(unless (and (exact-integer? start)
|
|
227
|
+
(exact-integer? end)
|
|
228
|
+
(<= 0 start end))
|
|
229
|
+
(error-from 'vector-copy "invalid index range" start end))
|
|
230
|
+
(let ((result (make-vector (- end start) fill)))
|
|
231
|
+
(vector-move-left! v start (min end len) result 0)
|
|
232
|
+
result)))))
|
|
233
|
+
|
|
234
|
+
(define vector-reverse-copy
|
|
235
|
+
(let ()
|
|
236
|
+
(define (%vector-reverse-copy vec start end)
|
|
237
|
+
(let* ((len (- end start))
|
|
238
|
+
(result (make-vector len)))
|
|
239
|
+
(let loop ((i 0) (j (- end 1)))
|
|
240
|
+
(unless (= i len)
|
|
241
|
+
(vector-set! result i (vector-ref vec j))
|
|
242
|
+
(loop (+ i 1) (- j 1))))
|
|
243
|
+
result))
|
|
244
|
+
(case-lambda
|
|
245
|
+
"(vector-reverse-copy vec [start [end]]) -> vector
|
|
246
|
+
|
|
247
|
+
Allocate a new vector whose length is END - START and fills it with
|
|
248
|
+
elements from vec, taking elements from vec in reverse order starting
|
|
249
|
+
at index START and stopping at index END. START defaults to 0 and END
|
|
250
|
+
defaults to the value of (vector-length VEC)."
|
|
251
|
+
((vec)
|
|
252
|
+
(assert-vector vec 'vector-reverse-copy)
|
|
253
|
+
(%vector-reverse-copy vec 0 (vector-length vec)))
|
|
254
|
+
((vec start)
|
|
255
|
+
(assert-vector vec 'vector-reverse-copy)
|
|
256
|
+
(let ((len (vector-length vec)))
|
|
257
|
+
(assert-valid-start start len 'vector-reverse-copy)
|
|
258
|
+
(%vector-reverse-copy vec start len)))
|
|
259
|
+
((vec start end)
|
|
260
|
+
(assert-vector vec 'vector-reverse-copy)
|
|
261
|
+
(let ((len (vector-length vec)))
|
|
262
|
+
(assert-valid-range start end len 'vector-reverse-copy)
|
|
263
|
+
(%vector-reverse-copy vec start end))))))
|
|
264
|
+
|
|
265
|
+
(define (%vector-concatenate vs)
|
|
266
|
+
(let* ((result-len (let loop ((vs vs) (len 0))
|
|
267
|
+
(if (null? vs)
|
|
268
|
+
len
|
|
269
|
+
(loop (cdr vs) (+ len (vector-length (car vs)))))))
|
|
270
|
+
(result (make-vector result-len)))
|
|
271
|
+
(let loop ((vs vs) (pos 0))
|
|
272
|
+
(unless (null? vs)
|
|
273
|
+
(let* ((v (car vs))
|
|
274
|
+
(len (vector-length v)))
|
|
275
|
+
(vector-move-left! v 0 len result pos)
|
|
276
|
+
(loop (cdr vs) (+ pos len)))))
|
|
277
|
+
result))
|
|
278
|
+
|
|
279
|
+
(define vector-append
|
|
280
|
+
(case-lambda
|
|
281
|
+
"(vector-append vec ...) -> vector
|
|
282
|
+
|
|
283
|
+
Return a newly allocated vector that contains all elements in order
|
|
284
|
+
from the subsequent locations in VEC ..."
|
|
285
|
+
(() (vector))
|
|
286
|
+
((v)
|
|
287
|
+
(assert-vector v 'vector-append)
|
|
288
|
+
(guile-vector-copy v))
|
|
289
|
+
((v1 v2)
|
|
290
|
+
(assert-vector v1 'vector-append)
|
|
291
|
+
(assert-vector v2 'vector-append)
|
|
292
|
+
(let ((len1 (vector-length v1))
|
|
293
|
+
(len2 (vector-length v2)))
|
|
294
|
+
(let ((result (make-vector (+ len1 len2))))
|
|
295
|
+
(vector-move-left! v1 0 len1 result 0)
|
|
296
|
+
(vector-move-left! v2 0 len2 result len1)
|
|
297
|
+
result)))
|
|
298
|
+
(vs
|
|
299
|
+
(assert-vectors vs 'vector-append)
|
|
300
|
+
(%vector-concatenate vs))))
|
|
301
|
+
|
|
302
|
+
(define (vector-concatenate vs)
|
|
303
|
+
"(vector-concatenate list-of-vectors) -> vector
|
|
304
|
+
|
|
305
|
+
Append each vector in LIST-OF-VECTORS. Equivalent to:
|
|
306
|
+
(apply vector-append LIST-OF-VECTORS)"
|
|
307
|
+
(assert-vectors vs 'vector-concatenate)
|
|
308
|
+
(%vector-concatenate vs))
|
|
309
|
+
|
|
310
|
+
(define (vector-empty? vec)
|
|
311
|
+
"(vector-empty? vec) -> boolean
|
|
312
|
+
|
|
313
|
+
Return true if VEC is empty, i.e. its length is 0, and false if not."
|
|
314
|
+
(assert-vector vec 'vector-empty?)
|
|
315
|
+
(zero? (vector-length vec)))
|
|
316
|
+
|
|
317
|
+
(define vector=
|
|
318
|
+
(let ()
|
|
319
|
+
(define (all-of-length? len vs)
|
|
320
|
+
(or (null? vs)
|
|
321
|
+
(and (= len (vector-length (car vs)))
|
|
322
|
+
(all-of-length? len (cdr vs)))))
|
|
323
|
+
(define (=up-to? i elt=? v1 v2)
|
|
324
|
+
(or (negative? i)
|
|
325
|
+
(let ((x1 (vector-ref v1 i))
|
|
326
|
+
(x2 (vector-ref v2 i)))
|
|
327
|
+
(and (or (eq? x1 x2) (elt=? x1 x2))
|
|
328
|
+
(=up-to? (- i 1) elt=? v1 v2)))))
|
|
329
|
+
(case-lambda
|
|
330
|
+
"(vector= elt=? vec ...) -> boolean
|
|
331
|
+
|
|
332
|
+
Return true if the vectors VEC ... have equal lengths and equal
|
|
333
|
+
elements according to ELT=?. ELT=? is always applied to two
|
|
334
|
+
arguments. Element comparison must be consistent with eq?, in the
|
|
335
|
+
following sense: if (eq? a b) returns true, then (elt=? a b) must also
|
|
336
|
+
return true. The order in which comparisons are performed is
|
|
337
|
+
unspecified."
|
|
338
|
+
((elt=?)
|
|
339
|
+
(assert-procedure elt=? 'vector=)
|
|
340
|
+
#t)
|
|
341
|
+
((elt=? v)
|
|
342
|
+
(assert-procedure elt=? 'vector=)
|
|
343
|
+
(assert-vector v 'vector=)
|
|
344
|
+
#t)
|
|
345
|
+
((elt=? v1 v2)
|
|
346
|
+
(assert-procedure elt=? 'vector=)
|
|
347
|
+
(assert-vector v1 'vector=)
|
|
348
|
+
(assert-vector v2 'vector=)
|
|
349
|
+
(let ((len (vector-length v1)))
|
|
350
|
+
(and (= len (vector-length v2))
|
|
351
|
+
(=up-to? (- len 1) elt=? v1 v2))))
|
|
352
|
+
((elt=? v1 . vs)
|
|
353
|
+
(assert-procedure elt=? 'vector=)
|
|
354
|
+
(assert-vector v1 'vector=)
|
|
355
|
+
(assert-vectors vs 'vector=)
|
|
356
|
+
(let ((len (vector-length v1)))
|
|
357
|
+
(and (all-of-length? len vs)
|
|
358
|
+
(let loop ((vs vs))
|
|
359
|
+
(or (null? vs)
|
|
360
|
+
(and (=up-to? (- len 1) elt=? v1 (car vs))
|
|
361
|
+
(loop (cdr vs)))))))))))
|
|
362
|
+
|
|
363
|
+
(define vector-fold
|
|
364
|
+
(case-lambda
|
|
365
|
+
"(vector-fold kons knil vec1 vec2 ...) -> value
|
|
366
|
+
|
|
367
|
+
The fundamental vector iterator. KONS is iterated over each index in
|
|
368
|
+
all of the vectors, stopping at the end of the shortest; KONS is
|
|
369
|
+
applied as (KONS i state (vector-ref VEC1 i) (vector-ref VEC2 i) ...)
|
|
370
|
+
where STATE is the current state value, and I is the current index.
|
|
371
|
+
The current state value begins with KNIL, and becomes whatever KONS
|
|
372
|
+
returned at the respective iteration. The iteration is strictly
|
|
373
|
+
left-to-right."
|
|
374
|
+
((kcons knil v)
|
|
375
|
+
(assert-procedure kcons 'vector-fold)
|
|
376
|
+
(assert-vector v 'vector-fold)
|
|
377
|
+
(let ((len (vector-length v)))
|
|
378
|
+
(let loop ((i 0) (state knil))
|
|
379
|
+
(if (= i len)
|
|
380
|
+
state
|
|
381
|
+
(loop (+ i 1) (kcons i state (vector-ref v i)))))))
|
|
382
|
+
((kcons knil v1 v2)
|
|
383
|
+
(assert-procedure kcons 'vector-fold)
|
|
384
|
+
(assert-vector v1 'vector-fold)
|
|
385
|
+
(assert-vector v2 'vector-fold)
|
|
386
|
+
(let ((len (min (vector-length v1) (vector-length v2))))
|
|
387
|
+
(let loop ((i 0) (state knil))
|
|
388
|
+
(if (= i len)
|
|
389
|
+
state
|
|
390
|
+
(loop (+ i 1)
|
|
391
|
+
(kcons i state (vector-ref v1 i) (vector-ref v2 i)))))))
|
|
392
|
+
((kcons knil . vs)
|
|
393
|
+
(assert-procedure kcons 'vector-fold)
|
|
394
|
+
(assert-vectors vs 'vector-fold)
|
|
395
|
+
(let ((len (min-length vs)))
|
|
396
|
+
(let loop ((i 0) (state knil))
|
|
397
|
+
(if (= i len)
|
|
398
|
+
state
|
|
399
|
+
(loop (+ i 1) (apply kcons i state (vectors-ref vs i)))))))))
|
|
400
|
+
|
|
401
|
+
(define vector-fold-right
|
|
402
|
+
(case-lambda
|
|
403
|
+
"(vector-fold-right kons knil vec1 vec2 ...) -> value
|
|
404
|
+
|
|
405
|
+
The fundamental vector iterator. KONS is iterated over each index in
|
|
406
|
+
all of the vectors, starting at the end of the shortest; KONS is
|
|
407
|
+
applied as (KONS i state (vector-ref VEC1 i) (vector-ref VEC2 i) ...)
|
|
408
|
+
where STATE is the current state value, and I is the current index.
|
|
409
|
+
The current state value begins with KNIL, and becomes whatever KONS
|
|
410
|
+
returned at the respective iteration. The iteration is strictly
|
|
411
|
+
right-to-left."
|
|
412
|
+
((kcons knil v)
|
|
413
|
+
(assert-procedure kcons 'vector-fold-right)
|
|
414
|
+
(assert-vector v 'vector-fold-right)
|
|
415
|
+
(let ((len (vector-length v)))
|
|
416
|
+
(let loop ((i (- len 1)) (state knil))
|
|
417
|
+
(if (negative? i)
|
|
418
|
+
state
|
|
419
|
+
(loop (- i 1) (kcons i state (vector-ref v i)))))))
|
|
420
|
+
((kcons knil v1 v2)
|
|
421
|
+
(assert-procedure kcons 'vector-fold-right)
|
|
422
|
+
(assert-vector v1 'vector-fold-right)
|
|
423
|
+
(assert-vector v2 'vector-fold-right)
|
|
424
|
+
(let ((len (min (vector-length v1) (vector-length v2))))
|
|
425
|
+
(let loop ((i (- len 1)) (state knil))
|
|
426
|
+
(if (negative? i)
|
|
427
|
+
state
|
|
428
|
+
(loop (- i 1)
|
|
429
|
+
(kcons i state (vector-ref v1 i) (vector-ref v2 i)))))))
|
|
430
|
+
((kcons knil . vs)
|
|
431
|
+
(assert-procedure kcons 'vector-fold-right)
|
|
432
|
+
(assert-vectors vs 'vector-fold-right)
|
|
433
|
+
(let ((len (min-length vs)))
|
|
434
|
+
(let loop ((i (- len 1)) (state knil))
|
|
435
|
+
(if (negative? i)
|
|
436
|
+
state
|
|
437
|
+
(loop (- i 1) (apply kcons i state (vectors-ref vs i)))))))))
|
|
438
|
+
|
|
439
|
+
(define vector-map
|
|
440
|
+
(case-lambda
|
|
441
|
+
"(vector-map f vec2 vec2 ...) -> vector
|
|
442
|
+
|
|
443
|
+
Return a new vector of the shortest size of the vector arguments.
|
|
444
|
+
Each element at index i of the new vector is mapped from the old
|
|
445
|
+
vectors by (F i (vector-ref VEC1 i) (vector-ref VEC2 i) ...). The
|
|
446
|
+
dynamic order of application of F is unspecified."
|
|
447
|
+
((f v)
|
|
448
|
+
(assert-procedure f 'vector-map)
|
|
449
|
+
(assert-vector v 'vector-map)
|
|
450
|
+
(let* ((len (vector-length v))
|
|
451
|
+
(result (make-vector len)))
|
|
452
|
+
(let loop ((i 0))
|
|
453
|
+
(unless (= i len)
|
|
454
|
+
(vector-set! result i (f i (vector-ref v i)))
|
|
455
|
+
(loop (+ i 1))))
|
|
456
|
+
result))
|
|
457
|
+
((f v1 v2)
|
|
458
|
+
(assert-procedure f 'vector-map)
|
|
459
|
+
(assert-vector v1 'vector-map)
|
|
460
|
+
(assert-vector v2 'vector-map)
|
|
461
|
+
(let* ((len (min (vector-length v1) (vector-length v2)))
|
|
462
|
+
(result (make-vector len)))
|
|
463
|
+
(let loop ((i 0))
|
|
464
|
+
(unless (= i len)
|
|
465
|
+
(vector-set! result i (f i (vector-ref v1 i) (vector-ref v2 i)))
|
|
466
|
+
(loop (+ i 1))))
|
|
467
|
+
result))
|
|
468
|
+
((f . vs)
|
|
469
|
+
(assert-procedure f 'vector-map)
|
|
470
|
+
(assert-vectors vs 'vector-map)
|
|
471
|
+
(let* ((len (min-length vs))
|
|
472
|
+
(result (make-vector len)))
|
|
473
|
+
(let loop ((i 0))
|
|
474
|
+
(unless (= i len)
|
|
475
|
+
(vector-set! result i (apply f i (vectors-ref vs i)))
|
|
476
|
+
(loop (+ i 1))))
|
|
477
|
+
result))))
|
|
478
|
+
|
|
479
|
+
(define vector-map!
|
|
480
|
+
(case-lambda
|
|
481
|
+
"(vector-map! f vec2 vec2 ...) -> unspecified
|
|
482
|
+
|
|
483
|
+
Similar to vector-map, but rather than mapping the new elements into a
|
|
484
|
+
new vector, the new mapped elements are destructively inserted into
|
|
485
|
+
VEC1. The dynamic order of application of F is unspecified."
|
|
486
|
+
((f v)
|
|
487
|
+
(assert-procedure f 'vector-map!)
|
|
488
|
+
(assert-vector v 'vector-map!)
|
|
489
|
+
(let ((len (vector-length v)))
|
|
490
|
+
(let loop ((i 0))
|
|
491
|
+
(unless (= i len)
|
|
492
|
+
(vector-set! v i (f i (vector-ref v i)))
|
|
493
|
+
(loop (+ i 1))))))
|
|
494
|
+
((f v1 v2)
|
|
495
|
+
(assert-procedure f 'vector-map!)
|
|
496
|
+
(assert-vector v1 'vector-map!)
|
|
497
|
+
(assert-vector v2 'vector-map!)
|
|
498
|
+
(let ((len (min (vector-length v1) (vector-length v2))))
|
|
499
|
+
(let loop ((i 0))
|
|
500
|
+
(unless (= i len)
|
|
501
|
+
(vector-set! v1 i (f i (vector-ref v1 i) (vector-ref v2 i)))
|
|
502
|
+
(loop (+ i 1))))))
|
|
503
|
+
((f . vs)
|
|
504
|
+
(assert-procedure f 'vector-map!)
|
|
505
|
+
(assert-vectors vs 'vector-map!)
|
|
506
|
+
(let ((len (min-length vs))
|
|
507
|
+
(v1 (car vs)))
|
|
508
|
+
(let loop ((i 0))
|
|
509
|
+
(unless (= i len)
|
|
510
|
+
(vector-set! v1 i (apply f i (vectors-ref vs i)))
|
|
511
|
+
(loop (+ i 1))))))))
|
|
512
|
+
|
|
513
|
+
(define vector-for-each
|
|
514
|
+
(case-lambda
|
|
515
|
+
"(vector-for-each f vec1 vec2 ...) -> unspecified
|
|
516
|
+
|
|
517
|
+
Call (F i VEC1[i] VEC2[i] ...) for each index i less than the length
|
|
518
|
+
of the shortest vector passed. The iteration is strictly
|
|
519
|
+
left-to-right."
|
|
520
|
+
((f v)
|
|
521
|
+
(assert-procedure f 'vector-for-each)
|
|
522
|
+
(assert-vector v 'vector-for-each)
|
|
523
|
+
(let ((len (vector-length v)))
|
|
524
|
+
(let loop ((i 0))
|
|
525
|
+
(unless (= i len)
|
|
526
|
+
(f i (vector-ref v i))
|
|
527
|
+
(loop (+ i 1))))))
|
|
528
|
+
((f v1 v2)
|
|
529
|
+
(assert-procedure f 'vector-for-each)
|
|
530
|
+
(assert-vector v1 'vector-for-each)
|
|
531
|
+
(assert-vector v2 'vector-for-each)
|
|
532
|
+
(let ((len (min (vector-length v1)
|
|
533
|
+
(vector-length v2))))
|
|
534
|
+
(let loop ((i 0))
|
|
535
|
+
(unless (= i len)
|
|
536
|
+
(f i (vector-ref v1 i) (vector-ref v2 i))
|
|
537
|
+
(loop (+ i 1))))))
|
|
538
|
+
((f . vs)
|
|
539
|
+
(assert-procedure f 'vector-for-each)
|
|
540
|
+
(assert-vectors vs 'vector-for-each)
|
|
541
|
+
(let ((len (min-length vs)))
|
|
542
|
+
(let loop ((i 0))
|
|
543
|
+
(unless (= i len)
|
|
544
|
+
(apply f i (vectors-ref vs i))
|
|
545
|
+
(loop (+ i 1))))))))
|
|
546
|
+
|
|
547
|
+
(define vector-count
|
|
548
|
+
(case-lambda
|
|
549
|
+
"(vector-count pred? vec1 vec2 ...) -> exact nonnegative integer
|
|
550
|
+
|
|
551
|
+
Count the number of indices i for which (PRED? VEC1[i] VEC2[i] ...)
|
|
552
|
+
returns true, where i is less than the length of the shortest vector
|
|
553
|
+
passed."
|
|
554
|
+
((pred? v)
|
|
555
|
+
(assert-procedure pred? 'vector-count)
|
|
556
|
+
(assert-vector v 'vector-count)
|
|
557
|
+
(let ((len (vector-length v)))
|
|
558
|
+
(let loop ((i 0) (count 0))
|
|
559
|
+
(cond ((= i len) count)
|
|
560
|
+
((pred? i (vector-ref v i))
|
|
561
|
+
(loop (+ i 1) (+ count 1)))
|
|
562
|
+
(else
|
|
563
|
+
(loop (+ i 1) count))))))
|
|
564
|
+
((pred? v1 v2)
|
|
565
|
+
(assert-procedure pred? 'vector-count)
|
|
566
|
+
(assert-vector v1 'vector-count)
|
|
567
|
+
(assert-vector v2 'vector-count)
|
|
568
|
+
(let ((len (min (vector-length v1)
|
|
569
|
+
(vector-length v2))))
|
|
570
|
+
(let loop ((i 0) (count 0))
|
|
571
|
+
(cond ((= i len) count)
|
|
572
|
+
((pred? i (vector-ref v1 i) (vector-ref v2 i))
|
|
573
|
+
(loop (+ i 1) (+ count 1)))
|
|
574
|
+
(else
|
|
575
|
+
(loop (+ i 1) count))))))
|
|
576
|
+
((pred? . vs)
|
|
577
|
+
(assert-procedure pred? 'vector-count)
|
|
578
|
+
(assert-vectors vs 'vector-count)
|
|
579
|
+
(let ((len (min-length vs)))
|
|
580
|
+
(let loop ((i 0) (count 0))
|
|
581
|
+
(cond ((= i len) count)
|
|
582
|
+
((apply pred? i (vectors-ref vs i))
|
|
583
|
+
(loop (+ i 1) (+ count 1)))
|
|
584
|
+
(else
|
|
585
|
+
(loop (+ i 1) count))))))))
|
|
586
|
+
|
|
587
|
+
(define vector-index
|
|
588
|
+
(case-lambda
|
|
589
|
+
"(vector-index pred? vec1 vec2 ...) -> exact nonnegative integer or #f
|
|
590
|
+
|
|
591
|
+
Find and return the index of the first elements in VEC1 VEC2 ... that
|
|
592
|
+
satisfy PRED?. If no matching element is found by the end of the
|
|
593
|
+
shortest vector, return #f."
|
|
594
|
+
((pred? v)
|
|
595
|
+
(assert-procedure pred? 'vector-index)
|
|
596
|
+
(assert-vector v 'vector-index)
|
|
597
|
+
(let ((len (vector-length v)))
|
|
598
|
+
(let loop ((i 0))
|
|
599
|
+
(and (< i len)
|
|
600
|
+
(if (pred? (vector-ref v i))
|
|
601
|
+
i
|
|
602
|
+
(loop (+ i 1)))))))
|
|
603
|
+
((pred? v1 v2)
|
|
604
|
+
(assert-procedure pred? 'vector-index)
|
|
605
|
+
(assert-vector v1 'vector-index)
|
|
606
|
+
(assert-vector v2 'vector-index)
|
|
607
|
+
(let ((len (min (vector-length v1)
|
|
608
|
+
(vector-length v2))))
|
|
609
|
+
(let loop ((i 0))
|
|
610
|
+
(and (< i len)
|
|
611
|
+
(if (pred? (vector-ref v1 i)
|
|
612
|
+
(vector-ref v2 i))
|
|
613
|
+
i
|
|
614
|
+
(loop (+ i 1)))))))
|
|
615
|
+
((pred? . vs)
|
|
616
|
+
(assert-procedure pred? 'vector-index)
|
|
617
|
+
(assert-vectors vs 'vector-index)
|
|
618
|
+
(let ((len (min-length vs)))
|
|
619
|
+
(let loop ((i 0))
|
|
620
|
+
(and (< i len)
|
|
621
|
+
(if (apply pred? (vectors-ref vs i))
|
|
622
|
+
i
|
|
623
|
+
(loop (+ i 1)))))))))
|
|
624
|
+
|
|
625
|
+
(define vector-index-right
|
|
626
|
+
(case-lambda
|
|
627
|
+
"(vector-index-right pred? vec1 vec2 ...) -> exact nonnegative integer or #f
|
|
628
|
+
|
|
629
|
+
Find and return the index of the last elements in VEC1 VEC2 ... that
|
|
630
|
+
satisfy PRED?, searching from right-to-left. If no matching element
|
|
631
|
+
is found before the end of the shortest vector, return #f."
|
|
632
|
+
((pred? v)
|
|
633
|
+
(assert-procedure pred? 'vector-index-right)
|
|
634
|
+
(assert-vector v 'vector-index-right)
|
|
635
|
+
(let ((len (vector-length v)))
|
|
636
|
+
(let loop ((i (- len 1)))
|
|
637
|
+
(and (>= i 0)
|
|
638
|
+
(if (pred? (vector-ref v i))
|
|
639
|
+
i
|
|
640
|
+
(loop (- i 1)))))))
|
|
641
|
+
((pred? v1 v2)
|
|
642
|
+
(assert-procedure pred? 'vector-index-right)
|
|
643
|
+
(assert-vector v1 'vector-index-right)
|
|
644
|
+
(assert-vector v2 'vector-index-right)
|
|
645
|
+
(let ((len (min (vector-length v1)
|
|
646
|
+
(vector-length v2))))
|
|
647
|
+
(let loop ((i (- len 1)))
|
|
648
|
+
(and (>= i 0)
|
|
649
|
+
(if (pred? (vector-ref v1 i)
|
|
650
|
+
(vector-ref v2 i))
|
|
651
|
+
i
|
|
652
|
+
(loop (- i 1)))))))
|
|
653
|
+
((pred? . vs)
|
|
654
|
+
(assert-procedure pred? 'vector-index-right)
|
|
655
|
+
(assert-vectors vs 'vector-index-right)
|
|
656
|
+
(let ((len (min-length vs)))
|
|
657
|
+
(let loop ((i (- len 1)))
|
|
658
|
+
(and (>= i 0)
|
|
659
|
+
(if (apply pred? (vectors-ref vs i))
|
|
660
|
+
i
|
|
661
|
+
(loop (- i 1)))))))))
|
|
662
|
+
|
|
663
|
+
(define vector-skip
|
|
664
|
+
(case-lambda
|
|
665
|
+
"(vector-skip pred? vec1 vec2 ...) -> exact nonnegative integer or #f
|
|
666
|
+
|
|
667
|
+
Find and return the index of the first elements in VEC1 VEC2 ... that
|
|
668
|
+
do not satisfy PRED?. If no matching element is found by the end of
|
|
669
|
+
the shortest vector, return #f."
|
|
670
|
+
((pred? v)
|
|
671
|
+
(assert-procedure pred? 'vector-skip)
|
|
672
|
+
(assert-vector v 'vector-skip)
|
|
673
|
+
(let ((len (vector-length v)))
|
|
674
|
+
(let loop ((i 0))
|
|
675
|
+
(and (< i len)
|
|
676
|
+
(if (pred? (vector-ref v i))
|
|
677
|
+
(loop (+ i 1))
|
|
678
|
+
i)))))
|
|
679
|
+
((pred? v1 v2)
|
|
680
|
+
(assert-procedure pred? 'vector-skip)
|
|
681
|
+
(assert-vector v1 'vector-skip)
|
|
682
|
+
(assert-vector v2 'vector-skip)
|
|
683
|
+
(let ((len (min (vector-length v1)
|
|
684
|
+
(vector-length v2))))
|
|
685
|
+
(let loop ((i 0))
|
|
686
|
+
(and (< i len)
|
|
687
|
+
(if (pred? (vector-ref v1 i)
|
|
688
|
+
(vector-ref v2 i))
|
|
689
|
+
(loop (+ i 1))
|
|
690
|
+
i)))))
|
|
691
|
+
((pred? . vs)
|
|
692
|
+
(assert-procedure pred? 'vector-skip)
|
|
693
|
+
(assert-vectors vs 'vector-skip)
|
|
694
|
+
(let ((len (min-length vs)))
|
|
695
|
+
(let loop ((i 0))
|
|
696
|
+
(and (< i len)
|
|
697
|
+
(if (apply pred? (vectors-ref vs i))
|
|
698
|
+
(loop (+ i 1))
|
|
699
|
+
i)))))))
|
|
700
|
+
|
|
701
|
+
(define vector-skip-right
|
|
702
|
+
(case-lambda
|
|
703
|
+
"(vector-skip-right pred? vec1 vec2 ...) -> exact nonnegative integer or #f
|
|
704
|
+
|
|
705
|
+
Find and return the index of the last elements in VEC1 VEC2 ... that
|
|
706
|
+
do not satisfy PRED?, searching from right-to-left. If no matching
|
|
707
|
+
element is found before the end of the shortest vector, return #f."
|
|
708
|
+
((pred? v)
|
|
709
|
+
(assert-procedure pred? 'vector-skip-right)
|
|
710
|
+
(assert-vector v 'vector-skip-right)
|
|
711
|
+
(let ((len (vector-length v)))
|
|
712
|
+
(let loop ((i (- len 1)))
|
|
713
|
+
(and (not (negative? i))
|
|
714
|
+
(if (pred? (vector-ref v i))
|
|
715
|
+
(loop (- i 1))
|
|
716
|
+
i)))))
|
|
717
|
+
((pred? v1 v2)
|
|
718
|
+
(assert-procedure pred? 'vector-skip-right)
|
|
719
|
+
(assert-vector v1 'vector-skip-right)
|
|
720
|
+
(assert-vector v2 'vector-skip-right)
|
|
721
|
+
(let ((len (min (vector-length v1)
|
|
722
|
+
(vector-length v2))))
|
|
723
|
+
(let loop ((i (- len 1)))
|
|
724
|
+
(and (not (negative? i))
|
|
725
|
+
(if (pred? (vector-ref v1 i)
|
|
726
|
+
(vector-ref v2 i))
|
|
727
|
+
(loop (- i 1))
|
|
728
|
+
i)))))
|
|
729
|
+
((pred? . vs)
|
|
730
|
+
(assert-procedure pred? 'vector-skip-right)
|
|
731
|
+
(assert-vectors vs 'vector-skip-right)
|
|
732
|
+
(let ((len (min-length vs)))
|
|
733
|
+
(let loop ((i (- len 1)))
|
|
734
|
+
(and (not (negative? i))
|
|
735
|
+
(if (apply pred? (vectors-ref vs i))
|
|
736
|
+
(loop (- i 1))
|
|
737
|
+
i)))))))
|
|
738
|
+
|
|
739
|
+
(define vector-binary-search
|
|
740
|
+
(let ()
|
|
741
|
+
(define (%vector-binary-search vec value cmp start end)
|
|
742
|
+
(let loop ((lo start) (hi end))
|
|
743
|
+
(and (< lo hi)
|
|
744
|
+
(let* ((i (quotient (+ lo hi) 2))
|
|
745
|
+
(x (vector-ref vec i))
|
|
746
|
+
(c (cmp x value)))
|
|
747
|
+
(cond ((zero? c) i)
|
|
748
|
+
((positive? c) (loop lo i))
|
|
749
|
+
((negative? c) (loop (+ i 1) hi)))))))
|
|
750
|
+
(case-lambda
|
|
751
|
+
"(vector-binary-search vec value cmp [start [end]]) -> exact nonnegative integer or #f
|
|
752
|
+
|
|
753
|
+
Find and return an index of VEC between START and END whose value is
|
|
754
|
+
VALUE using a binary search. If no matching element is found, return
|
|
755
|
+
#f. The default START is 0 and the default END is the length of VEC.
|
|
756
|
+
CMP must be a procedure of two arguments such that (CMP A B) returns
|
|
757
|
+
a negative integer if A < B, a positive integer if A > B, or zero if
|
|
758
|
+
A = B. The elements of VEC must be sorted in non-decreasing order
|
|
759
|
+
according to CMP."
|
|
760
|
+
((vec value cmp)
|
|
761
|
+
(assert-vector vec 'vector-binary-search)
|
|
762
|
+
(assert-procedure cmp 'vector-binary-search)
|
|
763
|
+
(%vector-binary-search vec value cmp 0 (vector-length vec)))
|
|
764
|
+
|
|
765
|
+
((vec value cmp start)
|
|
766
|
+
(assert-vector vec 'vector-binary-search)
|
|
767
|
+
(let ((len (vector-length vec)))
|
|
768
|
+
(assert-valid-start start len 'vector-binary-search)
|
|
769
|
+
(%vector-binary-search vec value cmp start len)))
|
|
770
|
+
|
|
771
|
+
((vec value cmp start end)
|
|
772
|
+
(assert-vector vec 'vector-binary-search)
|
|
773
|
+
(let ((len (vector-length vec)))
|
|
774
|
+
(assert-valid-range start end len 'vector-binary-search)
|
|
775
|
+
(%vector-binary-search vec value cmp start end))))))
|
|
776
|
+
|
|
777
|
+
(define vector-any
|
|
778
|
+
(case-lambda
|
|
779
|
+
"(vector-any pred? vec1 vec2 ...) -> value or #f
|
|
780
|
+
|
|
781
|
+
Find the first parallel set of elements from VEC1 VEC2 ... for which
|
|
782
|
+
PRED? returns a true value. If such a parallel set of elements
|
|
783
|
+
exists, vector-any returns the value that PRED? returned for that set
|
|
784
|
+
of elements. The iteration is strictly left-to-right."
|
|
785
|
+
((pred? v)
|
|
786
|
+
(assert-procedure pred? 'vector-any)
|
|
787
|
+
(assert-vector v 'vector-any)
|
|
788
|
+
(let ((len (vector-length v)))
|
|
789
|
+
(let loop ((i 0))
|
|
790
|
+
(and (< i len)
|
|
791
|
+
(or (pred? (vector-ref v i))
|
|
792
|
+
(loop (+ i 1)))))))
|
|
793
|
+
((pred? v1 v2)
|
|
794
|
+
(assert-procedure pred? 'vector-any)
|
|
795
|
+
(assert-vector v1 'vector-any)
|
|
796
|
+
(assert-vector v2 'vector-any)
|
|
797
|
+
(let ((len (min (vector-length v1)
|
|
798
|
+
(vector-length v2))))
|
|
799
|
+
(let loop ((i 0))
|
|
800
|
+
(and (< i len)
|
|
801
|
+
(or (pred? (vector-ref v1 i)
|
|
802
|
+
(vector-ref v2 i))
|
|
803
|
+
(loop (+ i 1)))))))
|
|
804
|
+
((pred? . vs)
|
|
805
|
+
(assert-procedure pred? 'vector-any)
|
|
806
|
+
(assert-vectors vs 'vector-any)
|
|
807
|
+
(let ((len (min-length vs)))
|
|
808
|
+
(let loop ((i 0))
|
|
809
|
+
(and (< i len)
|
|
810
|
+
(or (apply pred? (vectors-ref vs i))
|
|
811
|
+
(loop (+ i 1)))))))))
|
|
812
|
+
|
|
813
|
+
(define vector-every
|
|
814
|
+
(case-lambda
|
|
815
|
+
"(vector-every pred? vec1 vec2 ...) -> value or #f
|
|
816
|
+
|
|
817
|
+
If, for every index i less than the length of the shortest vector
|
|
818
|
+
argument, the set of elements VEC1[i] VEC2[i] ... satisfies PRED?,
|
|
819
|
+
vector-every returns the value that PRED? returned for the last set of
|
|
820
|
+
elements, at the last index of the shortest vector. The iteration is
|
|
821
|
+
strictly left-to-right."
|
|
822
|
+
((pred? v)
|
|
823
|
+
(assert-procedure pred? 'vector-every)
|
|
824
|
+
(assert-vector v 'vector-every)
|
|
825
|
+
(let ((len (vector-length v)))
|
|
826
|
+
(or (zero? len)
|
|
827
|
+
(let loop ((i 0))
|
|
828
|
+
(let ((val (pred? (vector-ref v i)))
|
|
829
|
+
(next-i (+ i 1)))
|
|
830
|
+
(if (or (not val) (= next-i len))
|
|
831
|
+
val
|
|
832
|
+
(loop next-i)))))))
|
|
833
|
+
((pred? v1 v2)
|
|
834
|
+
(assert-procedure pred? 'vector-every)
|
|
835
|
+
(assert-vector v1 'vector-every)
|
|
836
|
+
(assert-vector v2 'vector-every)
|
|
837
|
+
(let ((len (min (vector-length v1)
|
|
838
|
+
(vector-length v2))))
|
|
839
|
+
(or (zero? len)
|
|
840
|
+
(let loop ((i 0))
|
|
841
|
+
(let ((val (pred? (vector-ref v1 i)
|
|
842
|
+
(vector-ref v2 i)))
|
|
843
|
+
(next-i (+ i 1)))
|
|
844
|
+
(if (or (not val) (= next-i len))
|
|
845
|
+
val
|
|
846
|
+
(loop next-i)))))))
|
|
847
|
+
((pred? . vs)
|
|
848
|
+
(assert-procedure pred? 'vector-every)
|
|
849
|
+
(assert-vectors vs 'vector-every)
|
|
850
|
+
(let ((len (min-length vs)))
|
|
851
|
+
(or (zero? len)
|
|
852
|
+
(let loop ((i 0))
|
|
853
|
+
(let ((val (apply pred? (vectors-ref vs i)))
|
|
854
|
+
(next-i (+ i 1)))
|
|
855
|
+
(if (or (not val) (= next-i len))
|
|
856
|
+
val
|
|
857
|
+
(loop next-i)))))))))
|
|
858
|
+
|
|
859
|
+
(define (vector-swap! vec i j)
|
|
860
|
+
"(vector-swap! vec i j) -> unspecified
|
|
861
|
+
|
|
862
|
+
Swap the values of the locations in VEC at I and J."
|
|
863
|
+
(assert-vector vec 'vector-swap!)
|
|
864
|
+
(let ((len (vector-length vec)))
|
|
865
|
+
(assert-valid-index i len 'vector-swap!)
|
|
866
|
+
(assert-valid-index j len 'vector-swap!)
|
|
867
|
+
(let ((tmp (vector-ref vec i)))
|
|
868
|
+
(vector-set! vec i (vector-ref vec j))
|
|
869
|
+
(vector-set! vec j tmp))))
|
|
870
|
+
|
|
871
|
+
;; TODO: Enhance Guile core 'vector-fill!' to do this.
|
|
872
|
+
(define vector-fill!
|
|
873
|
+
(let ()
|
|
874
|
+
(define guile-vector-fill!
|
|
875
|
+
(@ (guile) vector-fill!))
|
|
876
|
+
(define (%vector-fill! vec fill start end)
|
|
877
|
+
(let loop ((i start))
|
|
878
|
+
(when (< i end)
|
|
879
|
+
(vector-set! vec i fill)
|
|
880
|
+
(loop (+ i 1)))))
|
|
881
|
+
(case-lambda
|
|
882
|
+
"(vector-fill! vec fill [start [end]]) -> unspecified
|
|
883
|
+
|
|
884
|
+
Assign the value of every location in VEC between START and END to
|
|
885
|
+
FILL. START defaults to 0 and END defaults to the length of VEC."
|
|
886
|
+
((vec fill)
|
|
887
|
+
(guile-vector-fill! vec fill))
|
|
888
|
+
((vec fill start)
|
|
889
|
+
(assert-vector vec 'vector-fill!)
|
|
890
|
+
(let ((len (vector-length vec)))
|
|
891
|
+
(assert-valid-start start len 'vector-fill!)
|
|
892
|
+
(%vector-fill! vec fill start len)))
|
|
893
|
+
((vec fill start end)
|
|
894
|
+
(assert-vector vec 'vector-fill!)
|
|
895
|
+
(let ((len (vector-length vec)))
|
|
896
|
+
(assert-valid-range start end len 'vector-fill!)
|
|
897
|
+
(%vector-fill! vec fill start end))))))
|
|
898
|
+
|
|
899
|
+
(define (%vector-reverse! vec start end)
|
|
900
|
+
(let loop ((i start) (j (- end 1)))
|
|
901
|
+
(when (< i j)
|
|
902
|
+
(let ((tmp (vector-ref vec i)))
|
|
903
|
+
(vector-set! vec i (vector-ref vec j))
|
|
904
|
+
(vector-set! vec j tmp)
|
|
905
|
+
(loop (+ i 1) (- j 1))))))
|
|
906
|
+
|
|
907
|
+
(define vector-reverse!
|
|
908
|
+
(case-lambda
|
|
909
|
+
"(vector-reverse! vec [start [end]]) -> unspecified
|
|
910
|
+
|
|
911
|
+
Destructively reverse the contents of VEC between START and END.
|
|
912
|
+
START defaults to 0 and END defaults to the length of VEC."
|
|
913
|
+
((vec)
|
|
914
|
+
(assert-vector vec 'vector-reverse!)
|
|
915
|
+
(%vector-reverse! vec 0 (vector-length vec)))
|
|
916
|
+
((vec start)
|
|
917
|
+
(assert-vector vec 'vector-reverse!)
|
|
918
|
+
(let ((len (vector-length vec)))
|
|
919
|
+
(assert-valid-start start len 'vector-reverse!)
|
|
920
|
+
(%vector-reverse! vec start len)))
|
|
921
|
+
((vec start end)
|
|
922
|
+
(assert-vector vec 'vector-reverse!)
|
|
923
|
+
(let ((len (vector-length vec)))
|
|
924
|
+
(assert-valid-range start end len 'vector-reverse!)
|
|
925
|
+
(%vector-reverse! vec start end)))))
|
|
926
|
+
|
|
927
|
+
(define-syntax-rule (define-vector-copier! copy! docstring inner-proc)
|
|
928
|
+
(define copy!
|
|
929
|
+
(let ((%copy! inner-proc))
|
|
930
|
+
(case-lambda
|
|
931
|
+
docstring
|
|
932
|
+
((target tstart source)
|
|
933
|
+
(assert-vector target 'copy!)
|
|
934
|
+
(assert-vector source 'copy!)
|
|
935
|
+
(let ((tlen (vector-length target))
|
|
936
|
+
(slen (vector-length source)))
|
|
937
|
+
(assert-valid-start tstart tlen 'copy!)
|
|
938
|
+
(unless (>= tlen (+ tstart slen))
|
|
939
|
+
(error-from 'copy! "would write past end of target"))
|
|
940
|
+
(%copy! target tstart source 0 slen)))
|
|
941
|
+
|
|
942
|
+
((target tstart source sstart)
|
|
943
|
+
(assert-vector target 'copy!)
|
|
944
|
+
(assert-vector source 'copy!)
|
|
945
|
+
(let ((tlen (vector-length target))
|
|
946
|
+
(slen (vector-length source)))
|
|
947
|
+
(assert-valid-start tstart tlen 'copy!)
|
|
948
|
+
(assert-valid-start sstart slen 'copy!)
|
|
949
|
+
(unless (>= tlen (+ tstart (- slen sstart)))
|
|
950
|
+
(error-from 'copy! "would write past end of target"))
|
|
951
|
+
(%copy! target tstart source sstart slen)))
|
|
952
|
+
|
|
953
|
+
((target tstart source sstart send)
|
|
954
|
+
(assert-vector target 'copy!)
|
|
955
|
+
(assert-vector source 'copy!)
|
|
956
|
+
(let ((tlen (vector-length target))
|
|
957
|
+
(slen (vector-length source)))
|
|
958
|
+
(assert-valid-start tstart tlen 'copy!)
|
|
959
|
+
(assert-valid-range sstart send slen 'copy!)
|
|
960
|
+
(unless (>= tlen (+ tstart (- send sstart)))
|
|
961
|
+
(error-from 'copy! "would write past end of target"))
|
|
962
|
+
(%copy! target tstart source sstart send)))))))
|
|
963
|
+
|
|
964
|
+
(define-vector-copier! vector-copy!
|
|
965
|
+
"(vector-copy! target tstart source [sstart [send]]) -> unspecified
|
|
966
|
+
|
|
967
|
+
Copy a block of elements from SOURCE to TARGET, both of which must be
|
|
968
|
+
vectors, starting in TARGET at TSTART and starting in SOURCE at
|
|
969
|
+
SSTART, ending when SEND - SSTART elements have been copied. It is an
|
|
970
|
+
error for TARGET to have a length less than TSTART + (SEND - SSTART).
|
|
971
|
+
SSTART defaults to 0 and SEND defaults to the length of SOURCE."
|
|
972
|
+
(lambda (target tstart source sstart send)
|
|
973
|
+
(if (< tstart sstart)
|
|
974
|
+
(vector-move-left! source sstart send target tstart)
|
|
975
|
+
(vector-move-right! source sstart send target tstart))))
|
|
976
|
+
|
|
977
|
+
(define-vector-copier! vector-reverse-copy!
|
|
978
|
+
"(vector-reverse-copy! target tstart source [sstart [send]]) -> unspecified
|
|
979
|
+
|
|
980
|
+
Like vector-copy!, but copy the elements in the reverse order. It is
|
|
981
|
+
an error if TARGET and SOURCE are identical vectors and the TARGET and
|
|
982
|
+
SOURCE ranges overlap; however, if TSTART = SSTART,
|
|
983
|
+
vector-reverse-copy! behaves as (vector-reverse! TARGET TSTART SEND)
|
|
984
|
+
would."
|
|
985
|
+
(lambda (target tstart source sstart send)
|
|
986
|
+
(if (and (eq? target source) (= tstart sstart))
|
|
987
|
+
(%vector-reverse! target sstart send)
|
|
988
|
+
(let loop ((i tstart) (j (- send 1)))
|
|
989
|
+
(when (>= j sstart)
|
|
990
|
+
(vector-set! target i (vector-ref source j))
|
|
991
|
+
(loop (+ i 1) (- j 1)))))))
|
|
992
|
+
|
|
993
|
+
(define vector->list
|
|
994
|
+
(let ()
|
|
995
|
+
(define (%vector->list vec start end)
|
|
996
|
+
(let loop ((i (- end 1))
|
|
997
|
+
(result '()))
|
|
998
|
+
(if (< i start)
|
|
999
|
+
result
|
|
1000
|
+
(loop (- i 1) (cons (vector-ref vec i) result)))))
|
|
1001
|
+
(case-lambda
|
|
1002
|
+
"(vector->list vec [start [end]]) -> proper-list
|
|
1003
|
+
|
|
1004
|
+
Return a newly allocated list containing the elements in VEC between
|
|
1005
|
+
START and END. START defaults to 0 and END defaults to the length of
|
|
1006
|
+
VEC."
|
|
1007
|
+
((vec)
|
|
1008
|
+
(assert-vector vec 'vector->list)
|
|
1009
|
+
(%vector->list vec 0 (vector-length vec)))
|
|
1010
|
+
((vec start)
|
|
1011
|
+
(assert-vector vec 'vector->list)
|
|
1012
|
+
(let ((len (vector-length vec)))
|
|
1013
|
+
(assert-valid-start start len 'vector->list)
|
|
1014
|
+
(%vector->list vec start len)))
|
|
1015
|
+
((vec start end)
|
|
1016
|
+
(assert-vector vec 'vector->list)
|
|
1017
|
+
(let ((len (vector-length vec)))
|
|
1018
|
+
(assert-valid-range start end len 'vector->list)
|
|
1019
|
+
(%vector->list vec start end))))))
|
|
1020
|
+
|
|
1021
|
+
(define reverse-vector->list
|
|
1022
|
+
(let ()
|
|
1023
|
+
(define (%reverse-vector->list vec start end)
|
|
1024
|
+
(let loop ((i start)
|
|
1025
|
+
(result '()))
|
|
1026
|
+
(if (>= i end)
|
|
1027
|
+
result
|
|
1028
|
+
(loop (+ i 1) (cons (vector-ref vec i) result)))))
|
|
1029
|
+
(case-lambda
|
|
1030
|
+
"(reverse-vector->list vec [start [end]]) -> proper-list
|
|
1031
|
+
|
|
1032
|
+
Return a newly allocated list containing the elements in VEC between
|
|
1033
|
+
START and END in reverse order. START defaults to 0 and END defaults
|
|
1034
|
+
to the length of VEC."
|
|
1035
|
+
((vec)
|
|
1036
|
+
(assert-vector vec 'reverse-vector->list)
|
|
1037
|
+
(%reverse-vector->list vec 0 (vector-length vec)))
|
|
1038
|
+
((vec start)
|
|
1039
|
+
(assert-vector vec 'reverse-vector->list)
|
|
1040
|
+
(let ((len (vector-length vec)))
|
|
1041
|
+
(assert-valid-start start len 'reverse-vector->list)
|
|
1042
|
+
(%reverse-vector->list vec start len)))
|
|
1043
|
+
((vec start end)
|
|
1044
|
+
(assert-vector vec 'reverse-vector->list)
|
|
1045
|
+
(let ((len (vector-length vec)))
|
|
1046
|
+
(assert-valid-range start end len 'reverse-vector->list)
|
|
1047
|
+
(%reverse-vector->list vec start end))))))
|
|
1048
|
+
|
|
1049
|
+
;; TODO: change to use 'case-lambda' and improve error checking.
|
|
1050
|
+
(define* (list->vector lst #:optional (start 0) (end (length lst)))
|
|
1051
|
+
"(list->vector proper-list [start [end]]) -> vector
|
|
1052
|
+
|
|
1053
|
+
Return a newly allocated vector of the elements from PROPER-LIST with
|
|
1054
|
+
indices between START and END. START defaults to 0 and END defaults
|
|
1055
|
+
to the length of PROPER-LIST."
|
|
1056
|
+
(let* ((len (- end start))
|
|
1057
|
+
(result (make-vector len)))
|
|
1058
|
+
(let loop ((i 0) (lst (drop lst start)))
|
|
1059
|
+
(if (= i len)
|
|
1060
|
+
result
|
|
1061
|
+
(begin (vector-set! result i (car lst))
|
|
1062
|
+
(loop (+ i 1) (cdr lst)))))))
|
|
1063
|
+
|
|
1064
|
+
;; TODO: change to use 'case-lambda' and improve error checking.
|
|
1065
|
+
(define* (reverse-list->vector lst #:optional (start 0) (end (length lst)))
|
|
1066
|
+
"(reverse-list->vector proper-list [start [end]]) -> vector
|
|
1067
|
+
|
|
1068
|
+
Return a newly allocated vector of the elements from PROPER-LIST with
|
|
1069
|
+
indices between START and END, in reverse order. START defaults to 0
|
|
1070
|
+
and END defaults to the length of PROPER-LIST."
|
|
1071
|
+
(let* ((len (- end start))
|
|
1072
|
+
(result (make-vector len)))
|
|
1073
|
+
(let loop ((i (- len 1)) (lst (drop lst start)))
|
|
1074
|
+
(if (negative? i)
|
|
1075
|
+
result
|
|
1076
|
+
(begin (vector-set! result i (car lst))
|
|
1077
|
+
(loop (- i 1) (cdr lst)))))))
|