Skip to content

WIP: Add template versions of functions - #13

Open
vegansk wants to merge 1 commit into
masterfrom
ftempl
Open

WIP: Add template versions of functions#13
vegansk wants to merge 1 commit into
masterfrom
ftempl

Conversation

@vegansk

@vegansk vegansk commented Nov 16, 2017

Copy link
Copy Markdown
Owner

Reason: in templates, we can use type inference, and so instead of writing

r.flatMap((x: int) => (x * 2).rightS)

, we can write

r.flatMapIt((it * 2).rightS)

@vegansk

vegansk commented Nov 16, 2017

Copy link
Copy Markdown
Owner Author

Waiting for nim-lang/Nim#6756

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant