Gwendal Roué
6a29d6c081
[BREAKING] Prefer Collection over Sequence for filter(keys:) and derived APIs
...
We were frequently turning those sequences into an Array in order to check their emptiness, and generally were not sure we'd iterate a sequence only once.
Also use `some Sequence` and `some Collection` whenever possible.
2024-09-08 12:52:27 +02:00
Gwendal Roué
961f6c4176
FilterCursor can't be made Sendable
2024-08-25 16:26:38 +02:00
Gwendal Roué
6157a40dad
Fix DocC warnings
2024-08-24 16:34:35 +02:00
Gwendal Roué
bbbd6bba90
Add Set methods union, formUnion, intersection and formIntersection that accept a cursor.
2024-06-05 19:38:16 +02:00
Gwendal Roué
43ced9b2f0
Trivial Sendable conformances
...
Either added, either made explicitly unavailable.
2024-03-17 18:25:04 +01:00
Gwendal Roué
13c804d1cc
DocC
2022-11-06 16:02:36 +01:00
Gwendal Roué
1818534513
DocC
2022-11-06 16:02:36 +01:00
Gwendal Roué
82b4d90a82
Xcode 14 RC doesn't ship with the Swift 5.6 stdlib
...
https://forums.swift.org/t/xcode-14-rc-cannot-specialize-protocol-type/60171
2022-09-09 08:16:55 +02:00
Gwendal Roué
5243db7fbc
Spelling
2022-08-21 21:22:34 +02:00
Gwendal Roué
55445dcc7c
NEW: RangeReplaceableCollection.append(contentsOf: cursor)
2022-08-21 21:22:34 +02:00
Gwendal Roué
dba7f1b2dc
BREAKING: turn Cursor.isEmpty into a property
...
https://github.com/apple/swift-evolution/blob/main/proposals/0310-effectful-readonly-properties.md
2022-08-21 21:22:34 +02:00
Gwendal Roué
a9fcf1b9c1
SE-0335, SE-0341, SE-0346, SE-0352, SE-0358: some, any, primary associated types
2022-08-21 21:22:34 +02:00
Gwendal Roué
c0c6b34869
SE-0346: primary associated types
2022-08-21 21:22:34 +02:00
Gwendal Roué
f0cfde682e
Update outdated documentation
2022-05-18 08:12:00 +02:00
Gwendal Roué
8e6827070f
Improve documentation
2022-01-14 13:47:54 +01:00
Gwendal Roué
d105b35750
More #1124-related documentation
2022-01-14 13:29:34 +01:00
Gwendal Roué
bd67153095
Fix #1124 for more cursors
2022-01-13 14:28:04 +01:00
Gwendal Roué
fc0e1bede1
Methods that fully consume a cursor prefer forEach to next
...
This allows custom forEach implementations to wrap the full consumption of a cursor
2022-01-08 13:50:14 +01:00
Gwendal Roué
823af1944e
Cursor.forEach is a customization point
2022-01-08 13:47:54 +01:00
Gwendal Roué
665770c50c
Remove all ABI annotations
2021-08-21 13:14:54 +02:00
Gwendal Roué
6e7555514a
More collection initializers from cursors
...
- support for minimumCapacity
- support for Dictionary (cursors with unique keys)
2021-03-12 13:48:25 +01:00
Gwendal Roué
836efb120f
Xcode 12.3 formatting
2020-12-23 12:13:05 +01:00
Gwendal Roué
62f33e1d55
Dictionary(grouping:by:) with Cursor
2020-07-22 08:39:45 +02:00
Gwendal Roué
df92e350c0
Documentation
2020-07-11 20:29:47 +02:00
Gwendal Roué
27120643b9
SE-0255: Implicit returns from single-expression functions
2020-04-09 17:16:23 +02:00
Gwendal Roué
9aa67f9db9
SE-0255: Implicit returns from single-expression functions
2020-03-08 23:12:46 +01:00
Gwendal Roué
df6bb8761c
Swiftlint + whitespace
2019-07-01 08:57:53 +02:00
Gwendal Roué
bed9164bcd
Allow specialization of fetching methods
2019-02-23 18:34:42 +01:00
Gwendal Roué
db67d3840b
Principle of least astonishment: rrename argument label rawSQL to sql
2019-02-17 13:28:41 +01:00
Gwendal Roué
c546c578ce
fetchCursor/All/One(_:rawSQL:arguments:adapter:)
2019-02-17 13:28:40 +01:00
Gwendal Roué
5cd66c1be8
Remove deprecated Cursor.flatMap
2019-02-08 10:16:17 +01:00
Gwendal Roué
22165984c3
Cursor.isEmpty()
2018-09-06 08:29:57 +02:00
Gwendal Roué
5747d1cff0
No more #if swift(>=4.1)
2018-04-30 08:26:23 +02:00
Gwendal Roué
4faa9964bd
Make AnyCursor final
2018-02-27 08:15:49 +01:00
Gwendal Roué
15a0ea79b0
Drop IteratorCursor, use AnyCursor instead
2018-02-27 08:11:48 +01:00
Gwendal Roué
b0e126f29d
SE-0187: deprecate Cursor.flatMap in favor of Cursor.compactMap
2018-02-25 09:24:23 +01:00
Gwendal Roué
fcfa044320
Parts of Cursor implementation are derived from Swift.org
2018-01-28 18:56:40 +01:00
Gwendal Roué
f95658e7ce
Remove convenience cursor types from reference documentation
...
Those types bloat the documentation for no real value: DropFirstCursor, DropWhileCursor, EnumeratedCursor, FilterCursor, FlattenCursor, MapCursor, PrefixCursor, PrefixWhileCursor
2018-01-28 17:13:53 +01:00
Gwendal Roué
2c16fcaa99
Cursor cleanup
2018-01-28 17:13:52 +01:00
Gwendal Roué
7c16ffcdf8
Cursor.joined(separator:String)
2018-01-28 17:13:51 +01:00
Gwendal Roué
e4b83baa53
Cursor.reduce(into:_:)
2018-01-28 17:13:51 +01:00
Gwendal Roué
ac6b2933a8
Tests for Cursor.max(by:), max(), min(by:), min()
2018-01-28 17:13:50 +01:00
Gwendal Roué
92758fa51d
Cursor.max(by:), max(), min(by:), min()
2018-01-28 17:13:50 +01:00
Gwendal Roué
eec6b17398
Cursor.dropLast()
2018-01-28 17:13:50 +01:00
Gwendal Roué
c296be5057
Cursor.dropFirst()
2018-01-28 17:13:49 +01:00
Gwendal Roué
1e5caa62a8
Tests for Cursor.prefix(while:)
2018-01-28 17:13:49 +01:00
Gwendal Roué
87d6c5dd29
Cursor.prefix(_:)
2018-01-28 17:13:48 +01:00
Gwendal Roué
520bdd64e6
Tests for Cursor.dropFirst(_:)
2018-01-28 17:13:47 +01:00
Gwendal Roué
72608fd016
Cursor.dropLast(_:)
2018-01-28 17:13:47 +01:00
Gwendal Roué
c9044ea07b
Cursor.dropFirst(_:)
2018-01-28 17:13:47 +01:00