Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dot broadcast doesn't work with do ... end #54039

Open
prbzrg opened this issue Apr 11, 2024 · 1 comment
Open

Dot broadcast doesn't work with do ... end #54039

prbzrg opened this issue Apr 11, 2024 · 1 comment

Comments

@prbzrg
Copy link
Contributor

prbzrg commented Apr 11, 2024

julia> map(ones(3)) do x
       x
       end
3-element Vector{Float64}:
 1.0
 1.0
 1.0

julia> map.(ones(3)) do x
       x
       end
ERROR: ParseError:
# Error @ REPL[5]:1:14
map.(ones(3)) do x
#            └───┘ ── extra tokens after end of expression
Stacktrace:
 [1] top-level scope
   @ none:1
Julia Version 1.10.2
Commit bd47eca2c8 (2024-03-01 10:14 UTC)
Build Info:
  Official https://julialang.org/ release
Platform Info:
  OS: Windows (x86_64-w64-mingw32)
  CPU: 12 × Intel(R) Core(TM) i7-10750H CPU @ 2.60GHz
  WORD_SIZE: 64
  LIBM: libopenlibm
  LLVM: libLLVM-15.0.7 (ORCJIT, skylake)
Threads: 12 default, 2 interactive, 7 GC (on 12 virtual cores)
@prbzrg
Copy link
Contributor Author

prbzrg commented Apr 11, 2024

Is this intended?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant