Skip to content

Instantly share code, notes, and snippets.

@Slesa
Created Mar 3, 2021
Embed
What would you like to do?
open FsUnit
[<TestFixture>]
type ``When using apply in List`` ()=
let (<*>) = List.apply
[<Test>] member x.
``it should call apply to each member``() =
[add] <*> [1; 2] <*> [10;20]
|> should equal [11;21;12;22]
open FsUnit
[<TestFixture>]
type ``When using apply in List`` ()=
[<Test>] member x.
``it should call apply to each member``() =
let resultList =
let (<*>) = List.apply
[add] <*> [1; 2] <*> [10;20]
resultList |> should equal [11;21;12;22]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment