MarioAriasC / funKTionale

Functional constructs for Kotlin
915 stars 71 forks source link

Rename second argument in Option.fold #24

Closed georgeci closed 6 years ago

georgeci commented 7 years ago

The name of the second argument "f" like a not very good solution. I like to use named argument for fold calling and any more functions. Of course, I can write:

 fold(isEmpty = {...}){value -> ...}

But I want to be able to write like this

 fold(isEmpty = {...},  some = {value -> ...})
MarioAriasC commented 7 years ago

I used f as convention on everything that is function; I could change it in a future release

MarioAriasC commented 6 years ago

fix on 1.2