Delyan Angelov
|
35af6a8d12
|
docs: fix doc comments in arrays too
|
2025-07-02 17:06:21 +03:00 |
|
Delyan Angelov
|
f822792a10
|
arrays: add reverse_iterator/1 + tests, allowing for for child in arrays.reverse_iterator(children) { instead of explicit C for style loop; it also avoids allocations (#24755)
|
2025-06-19 14:46:20 +03:00 |
|
kbkpbot
|
3291372c57
|
vlib,tools: add an arrays.diff module, implement a simple platform independent tool v diff file1.txt file2.txt using it (#24428)
|
2025-05-08 11:09:36 +03:00 |
|
Delyan Angelov
|
a80bc23314
|
tools: cleanup entries from the hardcoded skip_files list in common.v (used by v test , v test-self etc); use the new // vtest build: syntax to mark the tests instead (#23918)
|
2025-03-13 19:51:51 +02:00 |
|
Swastik Baranwal
|
99b93d9669
|
builtin: add runtime check for []Type{cap: negative} (#23307)
|
2024-12-30 09:46:17 +02:00 |
|
yuyi
|
008aaad999
|
fmt: remove the prefixed module name of const names, that are in the same module (related #22183) (#22185)
|
2024-09-10 11:25:56 +03:00 |
|
encyclopaedia
|
a31cd37b66
|
vlib: add an arrays.parallel module, containing parallel.run/3 and parallel.amap/3 implementations (#22090)
|
2024-08-24 17:57:06 +03:00 |
|
Carlos Esquerdo Bernat
|
c8dc145468
|
arrays: simplify arrays.sum and arrays.reduce (#22076)
|
2024-08-19 15:32:50 +03:00 |
|
yuyi
|
19f080ffb8
|
all: change single blank comment to blank line (#22016)
|
2024-08-09 14:55:58 +03:00 |
|
Felipe Pena
|
d186c3946f
|
arrays: fix arrays.fold, when the init value in the call, is an array (#21921)
|
2024-07-24 16:37:20 +03:00 |
|
Delyan Angelov
|
879cf1ed21
|
arrays: add arrays.chunk_while/2, where arrays.chunk_while([0,9,2,2,3,2],fn(x int,y int)bool{return x<=y})==[[0,9],[2,2,3],[2]]
|
2024-07-03 19:05:34 +03:00 |
|
Delyan Angelov
|
b008387074
|
arrays: extend test for arrays.sum with one testing sum over a struct with overloaded + operator, cleanup fn comment
|
2024-06-21 19:55:56 +03:00 |
|
Turiiya
|
1a35a783f1
|
breaking,checker: disallow initializing private struct fields outside structs module (#21183)
|
2024-04-12 13:53:02 +03:00 |
|
Turiiya
|
f77bb32044
|
all: fix typos (#21089)
|
2024-03-25 12:18:27 +02:00 |
|
Turiiya
|
d485cceee8
|
doc: update trim_doc_node_description, make module readmes more uniform (#20792)
|
2024-02-12 12:38:47 +02:00 |
|
Delyan Angelov
|
c7b7d5f50f
|
arrays: fix off by one error in arrays.uniq_only_repeated/1 and arrays.uniq_all_repeated/1
|
2023-12-04 15:30:59 +02:00 |
|
Joe C
|
757929392e
|
all: update attributes to use new syntax
|
2023-11-15 16:16:01 +11:00 |
|
Turiiya
|
9051ac8921
|
all: fix typos (#19634)
|
2023-10-23 21:21:15 +03:00 |
|
Delyan Angelov
|
b81a5325ef
|
arrays: add arrays.each, arrays.each_indexed, and tests for them
|
2023-09-27 11:26:05 +03:00 |
|
encyclopaedia
|
04d28f2a74
|
arrays: add a partition function, that splits a given array, based on a criteria, passed as a callback fn (#19417)
|
2023-09-23 15:52:54 +03:00 |
|
Turiiya
|
1e38cc0986
|
checker: disallow module name duplicates in local names (#18118)
|
2023-09-08 23:33:35 +03:00 |
|
Delyan Angelov
|
13fd5493d3
|
arrays: add new generic arrays.uniq, arrays.uniq_only, arrays.uniq_only_repeated, arrays.uniq_all_repeated, arrays.distinct
|
2023-09-01 16:51:51 +03:00 |
|
Turiiya
|
f755118e7c
|
vlib: update doc comments (#19231)
|
2023-08-30 08:50:00 +03:00 |
|
Turiiya
|
6df8ca212b
|
arrays: fix examples for find_first and find_last (#19153)
|
2023-08-17 07:15:37 +03:00 |
|
Delyan Angelov
|
9543123dc5
|
arrays: add a generic arrays.append/2, which unlike arrays.concat(a, ...b) , does not require a spread for the second argument
|
2023-08-13 20:04:44 +03:00 |
|
Michael Charlton
|
30fc9380a1
|
doc: use square brackets for generics in comments (#18943)
|
2023-07-22 13:22:30 +03:00 |
|
encyclopaedia
|
e7e5a07aa2
|
arrays: add more util functions and tests for them - find_first, find_last, join_to_string (#18784)
|
2023-07-07 06:52:08 +03:00 |
|
yuyi
|
54cc59d3a5
|
arrays: minor comments corrections (#18404)
|
2023-06-11 00:52:23 +03:00 |
|
JalonSolov
|
79b2c34f97
|
arrays: replace C.memcpy with vmemcpy calls, to make v -shared -Wimpure-v vlib/arrays/ pass (#17357)
|
2023-02-19 19:01:18 +02:00 |
|
Delyan Angelov
|
fc5826b7ca
|
cgen: minimise sizeof(EmptyStruct) to 0 for gcc/clang and to 1 for tcc/msvc, by changing EMPTY_STRUCT_DECLARATION and EMPTY_STRUCT_INITIALIZATION (#16733)
|
2022-12-22 21:47:39 +02:00 |
|
Delyan Angelov
|
7091010a53
|
arrays: add map_of_counts/1, map_of_indexes/1 as well as index_of_first/2, index_of_last/2 utilities (#16618)
|
2022-12-09 00:37:07 +02:00 |
|
yuyi
|
ef5be22f81
|
all: replace generic <> with [] - part 2 (#16536)
|
2022-11-26 18:23:26 +02:00 |
|
yuyi
|
51f4d99399
|
all: change optional to result in most of the libraries (#16123)
|
2022-10-20 22:14:33 +03:00 |
|
ChAoS_UnItY
|
acbfe88dd9
|
arrays, maps: cleanup comments and parameter names in function signatures (#15960)
|
2022-10-04 10:07:36 +03:00 |
|
ChAoS_UnItY
|
ffaca82ff8
|
arrays, maps: add indexed variant of collection function and minor cleanup (#15948)
|
2022-10-03 10:42:36 +03:00 |
|
yuyi
|
41dbd12bc4
|
tests: make error handling the same as the main function (#15825)
|
2022-09-21 19:45:43 +03:00 |
|
Delyan Angelov
|
c5ed179e76
|
arrays: remove deprecation from arrays.concat/2; it is a useful abstraction for operating on immutable arrays
|
2022-09-07 13:25:40 +03:00 |
|
Larpon
|
9dd8228f91
|
arrays: move carray_to_varray from builtin, make it generic (#15503)
|
2022-08-23 11:12:50 +03:00 |
|
Daniel Däschle
|
d679146a80
|
fmt: remove space in front of ? and ! (#14366)
|
2022-05-13 06:56:21 +03:00 |
|
Atom
|
a225b25117
|
arrays: rephrase doc string (#14205)
|
2022-04-28 13:17:53 +03:00 |
|
Alexander Medvednikov
|
fbb9e65c0f
|
all: ~500 more byte=>u8
|
2022-04-15 18:25:45 +03:00 |
|
Alexander Medvednikov
|
d4a0d6f73c
|
all: byte => u8
|
2022-04-15 14:58:56 +03:00 |
|
牧心
|
25d8faabf6
|
cgen: fix alloc empty struct array error (#14007)
|
2022-04-11 14:16:09 +03:00 |
|
牧心
|
11d9a67e3b
|
cgen: fix invalid operands to an_alias in an_array_of_aliased_values (#13994)
|
2022-04-10 11:42:17 +03:00 |
|
Nick Treleaven
|
42f92db0ab
|
v.doc: parse multi-line examples (so they get highlighted) (#13894)
|
2022-04-02 18:29:12 +03:00 |
|
Nick Treleaven
|
4bea35b028
|
vlib/arrays: fix copy to not use memcpy for array, map, string (#13703)
|
2022-03-10 01:30:51 +03:00 |
|
Nick Treleaven
|
7231a3f135
|
vlib: add mut for the first parameter of builtin.copy, arrays.copy and crypto (#13702)
|
2022-03-09 20:26:00 +02:00 |
|
Nick Treleaven
|
54de04a916
|
arrays: improve fold/reduce docs (#13700)
|
2022-03-09 20:04:49 +02:00 |
|
Nick Treleaven
|
17fcc788f2
|
arrays: add generic copy fn (#13677)
|
2022-03-08 09:44:04 +02:00 |
|
playX
|
4ef7d26133
|
arrays: add rotate_left and rotate_right (#13388)
|
2022-02-07 13:20:45 +02:00 |
|