Skip to content

tommililja/Instructions

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Example:

module Dice =

    let roll dice = instr {

        let! number =
            dice.Size
            |> Instruction.roll

        do!
            dice.Delay
            |> Option.map Instruction.delay
            |> Option.defaultWith Instruction.ret

        do! Instruction.log $"Dice rolled: %i{number}."

        return number
    }

About

Dependency Interpretation in F#

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages