Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Using numbers in template #5

@rkosafo

Description

@rkosafo

Given

""" {{{multiply 2}}}"""
""" {{{multiply n}}}"""

And

init
|> add "n" 10
|> add "multiply" (fun x -> x * 2)

The first one with the literal 2 fails to compile.
The second works.

How does on specify numbers in the template?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions