Skip to content

Commit eaf7ecf

Browse files
authored
Move Table/List helper module to new std-rfc (#1025)
This module was previously in `std-rfc`, but was left behind when we "reset" it. This simply moves it back into `std-rfc` for evaluation along with updates for latest main changes.
1 parent abc1330 commit eaf7ecf

File tree

11 files changed

+46
-23
lines changed

11 files changed

+46
-23
lines changed
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

stdlib-candidate-old/std-rfc/tables/reject-column-ranges.nu renamed to stdlib-candidate/std-rfc/tables/reject-column-ranges.nu

File renamed without changes.

stdlib-candidate-old/std-rfc/tables/reject-ranges.nu renamed to stdlib-candidate/std-rfc/tables/reject-ranges.nu

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,6 @@ use ./row-indices.nu *
1010
export def "reject ranges" [ ...ranges ] {
1111
enumerate
1212
| flatten
13+
| collect
1314
| reject ...(row-indices ...$ranges)
1415
}
File renamed without changes.

stdlib-candidate-old/std-rfc/tables/select-column-ranges.nu renamed to stdlib-candidate/std-rfc/tables/select-column-ranges.nu

File renamed without changes.
File renamed without changes.
Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,39 +1,44 @@
11
use std assert
22
use ../std-rfc/conversions *
33

4-
export def "test range-into-list" [] {
4+
#[test]
5+
def range-into-list [] {
56
assert equal (
67
1..10 | into list
78
) (
89
[ 1 2 3 4 5 6 7 8 9 10 ]
910
)
1011
}
1112

12-
export def "test string-into-list" [] {
13+
#[test]
14+
def string-into-list [] {
1315
assert equal (
1416
"foo" | into list
1517
) (
1618
[ foo ]
1719
)
1820
}
1921

20-
export def "test range-stride-into-list" [] {
22+
#[test]
23+
def range-stride-into-list [] {
2124
assert equal (
2225
0..2..10 | into list
2326
) (
2427
[ 0 2 4 6 8 10 ]
2528
)
2629
}
2730

28-
export def "test null-into-list" [] {
31+
#[test]
32+
def null-into-list [] {
2933
assert equal (
3034
null | into list | get 0 | describe
3135
) (
3236
"nothing"
3337
)
3438
}
3539

36-
export def "test list-into-list" [] {
40+
#[test]
41+
def list-into-list [] {
3742
assert equal (
3843
[ foo bar baz ] | into list
3944
) (

0 commit comments

Comments
 (0)