Higher-order Functions for OO Programmers | Rock the JVM

  Рет қаралды 4,933

Rock the JVM

Rock the JVM

Күн бұрын

Пікірлер: 11
@binarie
@binarie 9 ай бұрын
Best explanation I've ever seen. Thanks a lot!
@RajeshSamson
@RajeshSamson 3 жыл бұрын
Always worthy to watch your videos....superb content
@rockthejvm
@rockthejvm 3 жыл бұрын
Thanks!
@awadheshsingh7299
@awadheshsingh7299 2 жыл бұрын
15:35 In line 64, nTimesOriginal(f, n-1).apply(f(x)) We invoke apply function of nTimesOriginal. But nTimesOriginal has no function apply defined. Can you please explain. Thanks.
@rockthejvm
@rockthejvm 2 жыл бұрын
Function instances have the apply method.
@shakilhaque1822
@shakilhaque1822 3 жыл бұрын
Man that tail recursive HOF incrementer in your topic of 'Higher-order-functions and curries' on your beginner Scala course is super hard to understand (not because of the lacking in your teaching but just hard)....staying optimistic and holding onto the your statement of "rewind and watch this again or play around with the code yourself, and you will be better than 99% of Scala programmers out there when you understand it". To be honest i feel like combining your yt vids with the course actually leads to a MUCH better understanding..like having a teacher explaining the same topic in a different way cause he knows i didn't fully understand it. P.S. for anyone reading this who is learning Scala, mark my words that the 1hour wage that Daniel's course is up on Udemy is the best investment you can ever make.
@rockthejvm
@rockthejvm 3 жыл бұрын
That's such high praise, thank you!
@d4devotion
@d4devotion 3 жыл бұрын
This was indeed a hard one to understand.
@sebimed5917
@sebimed5917 3 жыл бұрын
For those interested in how this would look like in Java: public static void main(String[] args) { // Create Function objects Function baseFunction = i -> i + 1; Function modifiedFunction = nTimes(baseFunction, 4); // Result output System.out.println(baseFunction.apply(1)); System.out.println(modifiedFunction.apply(1)); } // Higher-order Function public static Function nTimes(Function function, int n) { if (n i; else return function.andThen(nTimes(function, n-1)); }
@rheafernandeshallu
@rheafernandeshallu 4 жыл бұрын
This took a while to process. But good job on the video
@rockthejvm
@rockthejvm 4 жыл бұрын
Yep, this concept takes a bit to internalize.
This Doesn't Make Sense - Scala Variables | Rock the JVM
9:20
Rock the JVM
Рет қаралды 2,8 М.
Self-Types in Scala - the Why and the How | Rock the JVM
14:57
Rock the JVM
Рет қаралды 8 М.
Sigma girl VS Sigma Error girl 2  #shorts #sigma
0:27
Jin and Hattie
Рет қаралды 124 МЛН
GIANT Gummy Worm #shorts
0:42
Mr DegrEE
Рет қаралды 152 МЛН
16.5: Higher Order Functions in JavaScript - Topics of JavaScript/ES6
16:21
Higher order functions in Java
16:48
Code with B
Рет қаралды 1,9 М.
Types, Kinds and Type Constructors in Scala | Rock the JVM
17:53
Rock the JVM
Рет қаралды 7 М.
What the Functor? | Functors in Scala | Rock the JVM
24:43
Rock the JVM
Рет қаралды 12 М.
Contravariance in Scala: Why Is It So Hard? | Rock the JVM
16:24
Rock the JVM
Рет қаралды 15 М.
Curried Functions - Computerphile
10:17
Computerphile
Рет қаралды 104 М.
Higher Order Functions: A JavaScript Strong Point
8:15
All Things JavaScript, LLC
Рет қаралды 26 М.
Why Should You Care About Referential Transparency?
19:56
Rock the JVM
Рет қаралды 4,5 М.
Semigroups and Monoids in Scala
23:05
Rock the JVM
Рет қаралды 6 М.
Sigma girl VS Sigma Error girl 2  #shorts #sigma
0:27
Jin and Hattie
Рет қаралды 124 МЛН