Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
hnfong
on Dec 26, 2023
|
parent
|
context
|
favorite
| on:
Ruby 3.3
Quick, which language is this written in?
a = [1,2,3,4]
for b in a
print(b)
end
jshen
on Dec 26, 2023
|
next
[–]
Here's some advice. If you want to make a point, make it clear and direct. No one knows what point you are trying to make here.
hnfong
on Dec 26, 2023
|
parent
|
next
[–]
Here's some advice - don't give unsolicited advice.
dorianmariefr
on Dec 26, 2023
|
prev
[–]
end is ruby :)
But you would write `[1, 2, 3, 4].each { |n| print(n) }`
Consider applying for YC's Spring batch! Applications are open till Feb 11.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search:
a = [1,2,3,4]
for b in a
end