Matus Goljer
b88cfb780a
Add dash prefix to epsilon variable.
11 years ago
Matus Goljer
19fbc24559
Fix anaphoric -spice-list macro
11 years ago
Matus Goljer
2db56f59ac
[-let] Add support for &as bindings ( #115 )
11 years ago
Matus Goljer
2cc124b957
[-let] Generate better code when skipping conses
11 years ago
Matus Goljer
c61fc349a6
Add -remove-first/last, -map-first/last, -replace-first/last
11 years ago
Matus Goljer
cf7ca2317a
[ Fix #97 ] Add -remove-item
11 years ago
William West
3992e3c506
Make `-fixfn' more robust at handling floats
...
This change addreses issue #123 . The two new optional parameters to
`-fixfn' allow the caller to specify a custom equality test function,
such as an approximate comparison of floats, and a halt test function,
which can trigger a halt to the fixpoint iteration if it fails to
converge.
The default equality test remains `equal'. The default halt test is a
simple counter up to `-fixfn-max-iterations'. The counter is provided by
the new function `-counter'.
The revised tests illustrate the usage of the new parameters.
11 years ago
William West
4640a2a51c
Allow for approx comparison of floats in tests
...
defexample entries may now include a symbol `~>' instead of `=>' which
uses an approximate comparison instead of `equal' to compare actual and
expected floating-point values.
Also, for completeness, add support for the `should-error' symbol `!!>' in
`examples-to-docs.el'. This is formatted as the comment ";; Error"
11 years ago
Vasilij Schneidermann
e574465edd
Add `-some`
...
This is a port of the CL function `some` and the Scheme function `any`
from SRFI-1. It is thought as addition to `-any?` (which returns a
boolean) and `-first` (which returns an element). Unlike these it
returns the first truthy value of applying the predicate on each list
item.
Resolves #122 .
11 years ago
Fredrik Bergroth
c34e4abb7d
Update invalid tests
11 years ago
Fredrik Bergroth
07f0358862
Add test case operator !!> for expected errors
11 years ago
Fredrik Bergroth
3bdf60b2a4
Add some examples
11 years ago
Matus Goljer
edb1e31759
[-let] Add more tests
12 years ago
Matus Goljer
f7664c6112
[-let] Add &keys support for cons matcher
12 years ago
Matus Goljer
0fc5d7394a
[-let] Make the cons matcher temp-bind as late as possible
12 years ago
Matus Goljer
51a0c9f64f
[-let] Fix expansion of _ symbols in vector matcher
12 years ago
Matus Goljer
65a373665b
[-let] Fix improper list non-symbol last argument handler
12 years ago
Matus Goljer
f93920102e
[-let] Optimize shifting/binding of unused _ places
12 years ago
Matus Goljer
6f81492373
[-lambda] Better error-handling
12 years ago
Matus Goljer
9065e1bdaa
[-let] Final cdr shift optimization
12 years ago
Matus Goljer
7f2b3c72e5
[-lambda] test all match-forms before converting to regular lambda
12 years ago
Matus Goljer
947ffdaa1a
Add support for &rest match for non-list sequences (like . for improper lists)
12 years ago
Matus Goljer
8f9fc4113d
Add support for multiple input arguments to -lambda
12 years ago
Matus Goljer
f0831d3ab9
Add -lambda
12 years ago
Matus Goljer
a4be872add
Add `-let` and `-let*`
12 years ago
Matus Goljer
2626840802
Add -fixfn
12 years ago
Matus Goljer
ab99be6636
Add -fix
12 years ago
Matus Goljer
3adad97d37
Add -non-nil
12 years ago
Matus Goljer
166bccdd61
Add -tree-map-nodes
12 years ago
Matus Goljer
d37947abfa
Add -tree-seq
12 years ago
Wilfred Hughes
25c114c53c
Implementing a shallow copy counterpart to -clone.
12 years ago
Magnar Sveen
f257fb907e
Add -butlast
12 years ago
Matus Goljer
9ebcce6b46
Add some niceties to font-locking of examples
12 years ago
Matus Goljer
c6b92ae2ca
Reorder the examples into more meaningful blocks
...
Add aliases, add links to similar functions to docs to improve discoverability
Replace 3rd person docstrings with infinitive docstrings.
12 years ago
Matus Goljer
174747ea97
Add -splice and -splice-list
12 years ago
Matus Goljer
f3b0a55b62
Change -predicate-p examples to -predicate? to maintain consistency
12 years ago
Matus Goljer
eea928a05f
Add -replace
12 years ago
Matus Goljer
7f0fadcdd6
Add -prodfn
12 years ago
Matus Goljer
2ecc073239
Reorder the partition examples to follow more logical order, add tests
12 years ago
Matus Goljer
d94808670f
Add -iteratefn
12 years ago
Matus Goljer
7185db8b78
[Issue #83 ] Add `step` to `-slice`
12 years ago
Matus Goljer
cd137e0d50
`-slice` should not fill the returned list with nils if to > length
12 years ago
Matus Goljer
624c501a67
Add `-table` and `-table-flat`
12 years ago
Matus Goljer
f780322bb6
Add `-flatten-n`
12 years ago
Steve Lamb
6b64ea7d1a
Add functions for flexibly zipping uneven lists
...
fixes #84 on github.
Add -zip-fill, -cycle and -pad.
12 years ago
Steve Lamb
f0dd4cc4fc
Add -annotate
12 years ago
steve
703bb599c6
Convert -zip to support variable-length arguments
...
fixes #82 on github
12 years ago
Matus Goljer
b44140accd
Add -is-prefix/suffix/infix-p
12 years ago
Matus Goljer
b0758469ce
Add -iterate, -unfold
12 years ago
Matus Goljer
6bdcfa5dbe
Add -split-on, -split-when
12 years ago