mirror of
https://github.com/justinethier/cyclone.git
synced 2025-07-15 08:47:35 +02:00
Sync
This commit is contained in:
parent
93016f48bd
commit
c3436bd2e7
4 changed files with 241 additions and 192 deletions
|
@ -9,107 +9,125 @@ The `(srfi 1)` provides a coherent and comprehensive set of list-processing proc
|
||||||
|
|
||||||
See the [SRFI document](http://srfi.schemers.org/srfi-1/srfi-1.html) for more information.
|
See the [SRFI document](http://srfi.schemers.org/srfi-1/srfi-1.html) for more information.
|
||||||
|
|
||||||
- [`xcons`](#xcons)
|
- Constructors:
|
||||||
- [`tree-copy`](#tree-copy)
|
[`xcons`](#xcons)
|
||||||
- [`make-list`](#make-list)
|
[`make-list`](#make-list)
|
||||||
- [`list-tabulate`](#list-tabulate)
|
[`list-tabulate`](#list-tabulate)
|
||||||
- [`cons*`](#cons)
|
[`cons*`](#cons)
|
||||||
- [`list-copy`](#list-copy)
|
[`list-copy`](#list-copy)
|
||||||
- [`proper-list?`](#proper-list)
|
[`circular-list`](#circular-list-1)
|
||||||
- [`circular-list?`](#circular-list)
|
[`iota`](#iota)
|
||||||
- [`dotted-list?`](#dotted-list)
|
|
||||||
- [`not-pair?`](#not-pair)
|
- Predicates
|
||||||
- [`null-list?`](#null-list)
|
[`proper-list?`](#proper-list)
|
||||||
- [`list=`](#list=)
|
[`circular-list?`](#circular-list)
|
||||||
- [`circular-list`](#circular-list-1)
|
[`dotted-list?`](#dotted-list)
|
||||||
- [`length+`](#length)
|
[`not-pair?`](#not-pair)
|
||||||
- [`iota`](#iota)
|
[`null-list?`](#null-list)
|
||||||
- [`first`](#first)
|
[`list=`](#list=)
|
||||||
- [`second`](#second)
|
|
||||||
- [`third`](#third)
|
- Selectors
|
||||||
- [`fourth`](#fourth)
|
[`first`](#first)
|
||||||
- [`fifth`](#fifth)
|
[`second`](#second)
|
||||||
- [`sixth`](#sixth)
|
[`third`](#third)
|
||||||
- [`seventh`](#seventh)
|
[`fourth`](#fourth)
|
||||||
- [`eighth`](#eighth)
|
[`fifth`](#fifth)
|
||||||
- [`ninth`](#ninth)
|
[`sixth`](#sixth)
|
||||||
- [`tenth`](#tenth)
|
[`seventh`](#seventh)
|
||||||
- [`car+cdr`](#carcdr)
|
[`eighth`](#eighth)
|
||||||
- [`take`](#take)
|
[`ninth`](#ninth)
|
||||||
- [`drop`](#drop)
|
[`tenth`](#tenth)
|
||||||
- [`take-right`](#take-right)
|
[`car+cdr`](#carcdr)
|
||||||
- [`drop-right`](#drop-right)
|
[`take`](#take)
|
||||||
- [`take!`](#take-1)
|
[`drop`](#drop)
|
||||||
- [`drop-right!`](#drop-right-1)
|
[`take-right`](#take-right)
|
||||||
- [`split-at`](#split-at)
|
[`drop-right`](#drop-right)
|
||||||
- [`split-at!`](#split-at-1)
|
[`take!`](#take-1)
|
||||||
- [`last`](#last)
|
[`drop-right!`](#drop-right-1)
|
||||||
- [`last-pair`](#last-pair)
|
[`split-at`](#split-at)
|
||||||
- [`zip`](#zip)
|
[`split-at!`](#split-at-1)
|
||||||
- [`unzip1`](#unzip1)
|
[`last`](#last)
|
||||||
- [`unzip2`](#unzip2)
|
[`last-pair`](#last-pair)
|
||||||
- [`unzip3`](#unzip3)
|
|
||||||
- [`unzip4`](#unzip4)
|
- Miscellaneous: length, append, concatenate, reverse, zip, and count
|
||||||
- [`unzip5`](#unzip5)
|
[`length+`](#length)
|
||||||
- [`count`](#count)
|
[`zip`](#zip)
|
||||||
- [`append!`](#append)
|
[`unzip1`](#unzip1)
|
||||||
- [`append-reverse`](#append-reverse)
|
[`unzip2`](#unzip2)
|
||||||
- [`append-reverse!`](#append-reverse-1)
|
[`unzip3`](#unzip3)
|
||||||
- [`concatenate`](#concatenate)
|
[`unzip4`](#unzip4)
|
||||||
- [`concatenate!`](#concatenate-1)
|
[`unzip5`](#unzip5)
|
||||||
- [`unfold`](#unfold)
|
[`count`](#count)
|
||||||
- [`fold`](#fold)
|
[`append!`](#append)
|
||||||
- [`pair-fold`](#pair-fold)
|
[`append-reverse`](#append-reverse)
|
||||||
- [`reduce`](#reduce)
|
[`append-reverse!`](#append-reverse-1)
|
||||||
- [`unfold-right`](#unfold-right)
|
[`concatenate`](#concatenate)
|
||||||
- [`fold-right`](#fold-right)
|
[`concatenate!`](#concatenate-1)
|
||||||
- [`pair-fold-right`](#pair-fold-right)
|
[`reverse!`](#reverse)
|
||||||
- [`reduce-right`](#reduce-right)
|
|
||||||
- [`append-map`](#append-map)
|
- Fold, unfold, and map
|
||||||
- [`append-map!`](#append-map-1)
|
[`unfold`](#unfold)
|
||||||
- [`map!`](#map)
|
[`fold`](#fold)
|
||||||
- [`pair-for-each`](#pair-for-each)
|
[`pair-fold`](#pair-fold)
|
||||||
- [`filter-map`](#filter-map)
|
[`reduce`](#reduce)
|
||||||
- [`map-in-order`](#map-in-order)
|
[`unfold-right`](#unfold-right)
|
||||||
- [`filter`](#filter)
|
[`fold-right`](#fold-right)
|
||||||
- [`partition`](#partition)
|
[`pair-fold-right`](#pair-fold-right)
|
||||||
- [`remove`](#remove)
|
[`reduce-right`](#reduce-right)
|
||||||
- [`filter!`](#filter-1)
|
[`append-map`](#append-map)
|
||||||
- [`partition!`](#partition-1)
|
[`append-map!`](#append-map-1)
|
||||||
- [`remove!`](#remove-1)
|
[`map!`](#map)
|
||||||
- [`find`](#find)
|
[`pair-for-each`](#pair-for-each)
|
||||||
- [`find-tail`](#find-tail)
|
[`filter-map`](#filter-map)
|
||||||
- [`any`](#any)
|
[`map-in-order`](#map-in-order)
|
||||||
- [`every`](#every)
|
|
||||||
- [`list-index`](#list-index)
|
- Filtering and partitioning
|
||||||
- [`take-while`](#take-while)
|
[`filter`](#filter)
|
||||||
- [`drop-while`](#drop-while)
|
[`partition`](#partition)
|
||||||
- [`take-while!`](#take-while-1)
|
[`remove`](#remove)
|
||||||
- [`span`](#span)
|
[`filter!`](#filter-1)
|
||||||
- [`break`](#break)
|
[`partition!`](#partition-1)
|
||||||
- [`span!`](#span-1)
|
[`remove!`](#remove-1)
|
||||||
- [`break!`](#break-1)
|
|
||||||
- [`delete`](#delete)
|
- Searching
|
||||||
- [`delete!`](#delete-1)
|
[`find`](#find)
|
||||||
- [`alist-cons`](#alist-cons)
|
[`find-tail`](#find-tail)
|
||||||
- [`alist-copy`](#alist-copy)
|
[`any`](#any)
|
||||||
- [`delete-duplicates`](#delete-duplicates)
|
[`every`](#every)
|
||||||
- [`delete-duplicates!`](#delete-duplicates-1)
|
[`list-index`](#list-index)
|
||||||
- [`alist-delete`](#alist-delete)
|
[`take-while`](#take-while)
|
||||||
- [`alist-delete!`](#alist-delete-1)
|
[`drop-while`](#drop-while)
|
||||||
- [`reverse!`](#reverse)
|
[`take-while!`](#take-while-1)
|
||||||
- [`lset<=`](#lset)
|
[`span`](#span)
|
||||||
- [`lset=`](#lset-1)
|
[`break`](#break)
|
||||||
- [`lset-adjoin`](#lset-adjoin)
|
[`span!`](#span-1)
|
||||||
- [`lset-union`](#lset-union)
|
[`break!`](#break-1)
|
||||||
- [`lset-intersection`](#lset-intersection)
|
|
||||||
- [`lset-difference`](#lset-difference)
|
- Deleting
|
||||||
- [`lset-xor`](#lset-xor)
|
[`delete`](#delete)
|
||||||
- [`lset-diff+intersection`](#lset-diffintersection)
|
[`delete!`](#delete-1)
|
||||||
- [`lset-union!`](#lset-union)
|
[`delete-duplicates`](#delete-duplicates)
|
||||||
- [`lset-intersection!`](#lset-intersection-1)
|
[`delete-duplicates!`](#delete-duplicates-1)
|
||||||
- [`lset-difference!`](#lset-difference-1)
|
|
||||||
- [`lset-xor!`](#lset-xor-1)
|
- Association lists
|
||||||
|
[`alist-cons`](#alist-cons)
|
||||||
|
[`alist-copy`](#alist-copy)
|
||||||
|
[`alist-delete`](#alist-delete)
|
||||||
|
[`alist-delete!`](#alist-delete-1)
|
||||||
|
|
||||||
|
- Set operations on lists
|
||||||
|
[`lset<=`](#lset)
|
||||||
|
[`lset=`](#lset-1)
|
||||||
|
[`lset-adjoin`](#lset-adjoin)
|
||||||
|
[`lset-union`](#lset-union)
|
||||||
|
[`lset-intersection`](#lset-intersection)
|
||||||
|
[`lset-difference`](#lset-difference)
|
||||||
|
[`lset-xor`](#lset-xor)
|
||||||
|
[`lset-diff+intersection`](#lset-diffintersection)
|
||||||
|
[`lset-union!`](#lset-union)
|
||||||
|
[`lset-intersection!`](#lset-intersection-1)
|
||||||
|
[`lset-difference!`](#lset-difference-1)
|
||||||
|
[`lset-xor!`](#lset-xor-1)
|
||||||
|
|
||||||
# xcons
|
# xcons
|
||||||
|
|
||||||
|
|
|
@ -9,44 +9,55 @@ The `(srfi 106)` library provides a basic socket interface.
|
||||||
|
|
||||||
See the [SRFI document](http://srfi.schemers.org/srfi-106/srfi-106.html) for more information.
|
See the [SRFI document](http://srfi.schemers.org/srfi-106/srfi-106.html) for more information.
|
||||||
|
|
||||||
- [`make-client-socket`](#make-client-socket)
|
- Constructors and predicate
|
||||||
- [`make-server-socket`](#make-server-socket)
|
[`make-client-socket`](#make-client-socket)
|
||||||
- [`socket?`](#socket)
|
[`make-server-socket`](#make-server-socket)
|
||||||
- [`socket-accept`](#socket-accept)
|
[`socket?`](#socket)
|
||||||
- [`socket-send`](#socket-send)
|
|
||||||
- [`socket-recv`](#socket-recv)
|
- Socket operations
|
||||||
- [`socket-shutdown`](#socket-shutdown)
|
[`socket-accept`](#socket-accept)
|
||||||
- [`socket-close`](#socket-close)
|
[`socket-send`](#socket-send)
|
||||||
- [`socket-input-port`](#socket-input-port)
|
[`socket-recv`](#socket-recv)
|
||||||
- [`socket-output-port`](#socket-output-port)
|
[`socket-shutdown`](#socket-shutdown)
|
||||||
- [`call-with-socket`](#call-with-socket)
|
[`socket-close`](#socket-close)
|
||||||
- [`address-family`](#address-family)
|
|
||||||
- [`address-info`](#address-info)
|
- Port conversion
|
||||||
- [`socket-domain`](#socket-domain)
|
[`socket-input-port`](#socket-input-port)
|
||||||
- [`ip-protocol`](#ip-protocol)
|
[`socket-output-port`](#socket-output-port)
|
||||||
- [`message-type`](#message-type)
|
|
||||||
- [`shutdown-method`](#shutdown-method)
|
- Control feature
|
||||||
- [`socket-merge-flags`](#socket-merge-flags)
|
[`call-with-socket`](#call-with-socket)
|
||||||
- [`socket-purge-flags`](#socket-purge-flags)
|
|
||||||
- [`*af-unspec*`](#af-unspec)
|
- Flag operations
|
||||||
- [`*af-inet*`](#af-inet)
|
[`address-family`](#address-family)
|
||||||
- [`*af-inet6*`](#af-inet6)
|
[`address-info`](#address-info)
|
||||||
- [`*sock-stream*`](#sock-stream)
|
[`socket-domain`](#socket-domain)
|
||||||
- [`*sock-dgram*`](#sock-dgram)
|
[`ip-protocol`](#ip-protocol)
|
||||||
- [`*ai-canonname*`](#ai-canonname)
|
[`message-type`](#message-type)
|
||||||
- [`*ai-numerichost*`](#ai-numerichost)
|
[`shutdown-method`](#shutdown-method)
|
||||||
- [`*ai-v4mapped*`](#ai-v4mapped)
|
[`socket-merge-flags`](#socket-merge-flags)
|
||||||
- [`*ai-all*`](#ai-all)
|
[`socket-purge-flags`](#socket-purge-flags)
|
||||||
- [`*ai-addrconfig*`](#ai-addrconfig)
|
|
||||||
- [`*ipproto-ip*`](#ipproto-ip)
|
- Constant values
|
||||||
- [`*ipproto-tcp*`](#ipproto-tcp)
|
[`*af-unspec*`](#af-unspec)
|
||||||
- [`*ipproto-udp*`](#ipproto-udp)
|
[`*af-inet*`](#af-inet)
|
||||||
- [`*msg-peek*`](#msg-peek)
|
[`*af-inet6*`](#af-inet6)
|
||||||
- [`*msg-oob*`](#msg-oob)
|
[`*sock-stream*`](#sock-stream)
|
||||||
- [`*msg-waitall*`](#msg-waitall)
|
[`*sock-dgram*`](#sock-dgram)
|
||||||
- [`*shut-rd*`](#shut-rd)
|
[`*ai-canonname*`](#ai-canonname)
|
||||||
- [`*shut-wr*`](#shut-wr)
|
[`*ai-numerichost*`](#ai-numerichost)
|
||||||
- [`*shut-rdwr*`](#shut-rdwr)
|
[`*ai-v4mapped*`](#ai-v4mapped)
|
||||||
|
[`*ai-all*`](#ai-all)
|
||||||
|
[`*ai-addrconfig*`](#ai-addrconfig)
|
||||||
|
[`*ipproto-ip*`](#ipproto-ip)
|
||||||
|
[`*ipproto-tcp*`](#ipproto-tcp)
|
||||||
|
[`*ipproto-udp*`](#ipproto-udp)
|
||||||
|
[`*msg-peek*`](#msg-peek)
|
||||||
|
[`*msg-oob*`](#msg-oob)
|
||||||
|
[`*msg-waitall*`](#msg-waitall)
|
||||||
|
[`*shut-rd*`](#shut-rd)
|
||||||
|
[`*shut-wr*`](#shut-wr)
|
||||||
|
[`*shut-rdwr*`](#shut-rdwr)
|
||||||
|
|
||||||
# make-client-socket
|
# make-client-socket
|
||||||
|
|
||||||
|
|
|
@ -9,32 +9,41 @@ The `(srfi 117)` library defines list queues; mutable ordered collections that c
|
||||||
|
|
||||||
See the [SRFI document](http://srfi.schemers.org/srfi-117/srfi-117.html) for more information.
|
See the [SRFI document](http://srfi.schemers.org/srfi-117/srfi-117.html) for more information.
|
||||||
|
|
||||||
- [`make-list-queue`](#make-list-queue)
|
- Constructors
|
||||||
- [`list-queue`](#list-queue)
|
[`make-list-queue`](#make-list-queue)
|
||||||
- [`list-queue-copy`](#list-queue-copy)
|
[`list-queue`](#list-queue)
|
||||||
- [`list-queue-unfold`](#list-queue-unfold)
|
[`list-queue-copy`](#list-queue-copy)
|
||||||
- [`list-queue-unfold-right`](#list-queue-unfold-right)
|
[`list-queue-unfold`](#list-queue-unfold)
|
||||||
- [`list-queue?`](#list-queue-1)
|
[`list-queue-unfold-right`](#list-queue-unfold-right)
|
||||||
- [`list-queue-empty?`](#list-queue-empty)
|
|
||||||
- [`list-queue-front`](#list-queue-front)
|
- Predicates
|
||||||
- [`list-queue-back`](#list-queue-back)
|
[`list-queue?`](#list-queue-1)
|
||||||
- [`list-queue-list`](#list-queue-list)
|
[`list-queue-empty?`](#list-queue-empty)
|
||||||
- [`list-queue-first-last`](#list-queue-first-last)
|
|
||||||
- [`list-queue-add-front!`](#list-queue-add-front)
|
- Accessors
|
||||||
- [`list-queue-add-back!`](#list-queue-add-back)
|
[`list-queue-front`](#list-queue-front)
|
||||||
- [`list-queue-remove-front!`](#list-queue-remove-front)
|
[`list-queue-back`](#list-queue-back)
|
||||||
- [`list-queue-remove-back!`](#list-queue-remove-back)
|
[`list-queue-list`](#list-queue-list)
|
||||||
- [`list-queue-remove-all!`](#list-queue-remove-all)
|
[`list-queue-first-last`](#list-queue-first-last)
|
||||||
- [`list-queue-set-list!`](#list-queue-set-list)
|
|
||||||
- [`list-queue-append`](#list-queue-append)
|
- Mutators
|
||||||
- [`list-queue-append!`](#list-queue-append-1)
|
[`list-queue-add-front!`](#list-queue-add-front)
|
||||||
- [`list-queue-concatenate`](#list-queue-concatenate)
|
[`list-queue-add-back!`](#list-queue-add-back)
|
||||||
- [`list-queue-append`](#list-queue-append)
|
[`list-queue-remove-front!`](#list-queue-remove-front)
|
||||||
- [`list-queue-append!`](#list-queue-append-1)
|
[`list-queue-remove-back!`](#list-queue-remove-back)
|
||||||
- [`list-queue-concatenate`](#list-queue-concatenate)
|
[`list-queue-remove-all!`](#list-queue-remove-all)
|
||||||
- [`list-queue-map`](#list-queue-map)
|
[`list-queue-set-list!`](#list-queue-set-list)
|
||||||
- [`list-queue-map!`](#list-queue-map-1)
|
[`list-queue-append`](#list-queue-append)
|
||||||
- [`list-queue-for-each`](#list-queue-for-each)
|
[`list-queue-append!`](#list-queue-append-1)
|
||||||
|
[`list-queue-concatenate`](#list-queue-concatenate)
|
||||||
|
[`list-queue-append`](#list-queue-append)
|
||||||
|
[`list-queue-append!`](#list-queue-append-1)
|
||||||
|
[`list-queue-concatenate`](#list-queue-concatenate)
|
||||||
|
|
||||||
|
- Mapping
|
||||||
|
[`list-queue-map`](#list-queue-map)
|
||||||
|
[`list-queue-map!`](#list-queue-map-1)
|
||||||
|
[`list-queue-for-each`](#list-queue-for-each)
|
||||||
|
|
||||||
# make-list-queue
|
# make-list-queue
|
||||||
|
|
||||||
|
|
|
@ -9,33 +9,44 @@ The `(srfi 133)` provides a vector library.
|
||||||
|
|
||||||
See the [SRFI document](http://srfi.schemers.org/srfi-133/srfi-133.html) for more information.
|
See the [SRFI document](http://srfi.schemers.org/srfi-133/srfi-133.html) for more information.
|
||||||
|
|
||||||
- [`vector-unfold`](#vector-unfold)
|
- Constructors
|
||||||
- [`vector-unfold-right`](#vector-unfold-right)
|
[`vector-unfold`](#vector-unfold)
|
||||||
- [`vector-reverse-copy`](#vector-reverse-copy)
|
[`vector-unfold-right`](#vector-unfold-right)
|
||||||
- [`vector-concatenate`](#vector-concatenate)
|
[`vector-reverse-copy`](#vector-reverse-copy)
|
||||||
- [`vector-append-subvectors`](#vector-append-subvectors)
|
[`vector-concatenate`](#vector-concatenate)
|
||||||
- [`vector-empty?`](#vector-empty)
|
[`vector-append-subvectors`](#vector-append-subvectors)
|
||||||
- [`vector=`](#vector)
|
|
||||||
- [`vector-fold`](#vector-fold)
|
- Predicates
|
||||||
- [`vector-fold-right`](#vector-fold-right)
|
[`vector-empty?`](#vector-empty)
|
||||||
- [`vector-map!`](#vector-map)
|
[`vector=`](#vector)
|
||||||
- [`vector-count`](#vector-count)
|
|
||||||
- [`vector-cumulate`](#vector-cumulate)
|
- Iteration
|
||||||
- [`vector-index`](#vector-index)
|
[`vector-fold`](#vector-fold)
|
||||||
- [`vector-index-right`](#vector-index-right)
|
[`vector-fold-right`](#vector-fold-right)
|
||||||
- [`vector-skip`](#vector-skip)
|
[`vector-map!`](#vector-map)
|
||||||
- [`vector-skip-right`](#vector-skip-right)
|
[`vector-count`](#vector-count)
|
||||||
- [`vector-binary-search`](#vector-binary-search)
|
[`vector-cumulate`](#vector-cumulate)
|
||||||
- [`vector-any`](#vector-any)
|
|
||||||
- [`vector-every`](#vector-every)
|
- Searching
|
||||||
- [`vector-partition`](#vector-partition)
|
[`vector-index`](#vector-index)
|
||||||
- [`vector-swap!`](#vector-swap)
|
[`vector-index-right`](#vector-index-right)
|
||||||
- [`vector-reverse!`](#vector-reverse)
|
[`vector-skip`](#vector-skip)
|
||||||
- [`vector-reverse-copy!`](#vector-reverse-copy)
|
[`vector-skip-right`](#vector-skip-right)
|
||||||
- [`vector-unfold!`](#vector-unfold)
|
[`vector-binary-search`](#vector-binary-search)
|
||||||
- [`vector-unfold-right!`](#vector-unfold-right)
|
[`vector-any`](#vector-any)
|
||||||
- [`reverse-vector->list`](#reverse-vector-list)
|
[`vector-every`](#vector-every)
|
||||||
- [`reverse-list->vector`](#reverse-list-vector)
|
[`vector-partition`](#vector-partition)
|
||||||
|
|
||||||
|
- Mutators
|
||||||
|
[`vector-swap!`](#vector-swap)
|
||||||
|
[`vector-reverse!`](#vector-reverse)
|
||||||
|
[`vector-reverse-copy!`](#vector-reverse-copy)
|
||||||
|
[`vector-unfold!`](#vector-unfold)
|
||||||
|
[`vector-unfold-right!`](#vector-unfold-right)
|
||||||
|
|
||||||
|
- Conversion
|
||||||
|
[`reverse-vector->list`](#reverse-vector-list)
|
||||||
|
[`reverse-list->vector`](#reverse-list-vector)
|
||||||
|
|
||||||
# vector-unfold
|
# vector-unfold
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue