News for hackers. Stuff that matters.
Re:Swift is like Kotlin by Black-Plaid on Thursday May 18, 2017 @01:54AM (#14365091)
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
Re:Swift is like Kotlin by timjver on Thursday May 18, 2017 @08:52AM (#14366761)
There's a PR that fixes one of them which was filed on December 22 of last year... Yikes.
Re:Swift is like Kotlin by agumonkey on Thursday May 18, 2017 @06:08AM (#14366017)
Re:Swift is like Kotlin by throwaway7645 on Thursday May 18, 2017 @06:31AM (#14366114)
Why are you citing an FP comp Sci professor? I must've missed something
Re:Swift is like Kotlin by agumonkey on Thursday May 18, 2017 @08:14AM (#14366571)
seeing reduce in swift made me think about the universality of fold, which is the paper linked.
Re:Swift is like Kotlin by throwaway7645 on Thursday May 18, 2017 @02:59PM (#14370040)
Ah, was about to say that all goes back to lambda calculus by Church and could be found in Lisp probably around ~1958.
Re:Swift is like Kotlin by agumonkey on Thursday May 18, 2017 @03:39PM (#14370386)
Actually I think there's a relation with exponentials and integral calculus. Or anything hyper-iteration related.