mirror of
https://github.com/nim-lang/Nim.git
synced 2026-04-20 06:20:38 +00:00
delete list comprehension (#12392)
The `lc` macro is now part of `graveyard` repository.
This commit is contained in:
@@ -92,11 +92,3 @@ proc foldLeft*[T,U](xs: List[T], z: U, f: (U, T) -> U): U =
|
||||
case xs.isEmpty
|
||||
of true: z
|
||||
else: foldLeft(xs.tail, f(z, xs.head), f)
|
||||
|
||||
suite "unittest compilation error":
|
||||
|
||||
test "issue 3313":
|
||||
let lst = lc[$x | (x <- 'a'..'z'), string].asList
|
||||
|
||||
let lstCopy = lst.dup
|
||||
check: lstCopy == lst
|
||||
|
||||
Reference in New Issue
Block a user