Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
Black-Plaid
on May 18, 2017
|
parent
|
context
|
favorite
| on:
Swift is like Kotlin
It's strange that on the Kotlin side the author goes out of their way to show 'shorter' ways to do things that are also available in Swift but not illustrated.
let sorted = [1, 3, 6].sorted() let sum = [1, 3. 6].reduce(0, +)
as examples
timjver
on May 18, 2017
|
next
[–]
There's a PR that fixes one of them which was filed on December 22 of last year... Yikes.
agumonkey
on May 18, 2017
|
prev
[–]
while we're at it
http://citeseer.ist.psu.edu/viewdoc/summary?doi=10.1.1.34.16...
throwaway7645
on May 18, 2017
|
parent
[–]
Why are you citing an FP comp Sci professor? I must've missed something
agumonkey
on May 18, 2017
|
root
|
parent
[–]
seeing reduce in swift made me think about the universality of fold, which is the paper linked.
throwaway7645
on May 18, 2017
|
root
|
parent
[–]
Ah, was about to say that all goes back to lambda calculus by Church and could be found in Lisp probably around ~1958.
agumonkey
on May 18, 2017
|
root
|
parent
[–]
Actually I think there's a relation with exponentials and integral calculus. Or anything hyper-iteration related.
Join us for
AI Startup School
this June 16-17 in San Francisco!
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: