Ellipsis argument doesn't work properly when arguments are unnamed #3

Closed
muxspace opened this Issue May 16, 2013 · 1 comment

Comments

Projects
None yet
1 participant
Contributor

muxspace commented May 16, 2013

> a(f, ...) %as% { list(...) }
> a(1, 2,3,4)
[[1]]
[1] 2

[[2]]
[1] 3

[[3]]
[1] 4

[[4]]
[1] NA

[[5]]
[1] NA

[[6]]
[1] NA

[[7]]
[1] NA

[[8]]
[1] NA

> a(1, 2)
[[1]]
[1] 2

[[2]]
[1] NA

[[3]]
[1] NA

[[4]]
[1] NA

> a(1)
list()

> a(1, b=3)
$b
[1] 3
Contributor

muxspace commented Jul 8, 2013

Fixed in lambda.r 1.1.2

@muxspace muxspace closed this Jul 8, 2013

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment