Skip to content

Commit 7c32036

Browse files
committed
Rename zapp to app
1 parent 50fb8a5 commit 7c32036

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

docsrc/content/abstraction-zipapplicative.fsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ let arr2 = (+) <!> [|1;2;3|] <.> [|10;20;30|]
127127

128128
// Validations
129129

130-
let validated = zapp2 {
130+
let validated = app2 {
131131
let! x = async { return Ok 1 }
132132
and! y = async { return Ok 2 }
133133
and! z = async { return Error ["Error"] }

src/FSharpPlus/Builders.fs

+5-5
Original file line numberDiff line numberDiff line change
@@ -236,19 +236,19 @@ module GenericBuilders =
236236
/// Creates a strict monadic computation expression with side-effects (see http://fsprojects.github.io/FSharpPlus/computation-expressions.html for more information)
237237
let monad'<'``monad<'t>``> = new MonadFxStrictBuilder<'``monad<'t>``> ()
238238

239-
/// Creates an applicative computation expression.
239+
/// Creates a (sequential) applicative computation expression.
240240
let applicative<'``Applicative<'T>``> = ApplicativeBuilder<'``Applicative<'T>``> ()
241241

242-
/// Creates an applicative computation expression which compose effects of two Applicatives.
242+
/// Creates a (sequential) applicative computation expression which compose effects of two Applicatives.
243243
let applicative2<'``Applicative1<Applicative2<'T>>``> = ApplicativeBuilder2<'``Applicative1<Applicative2<'T>>``> ()
244244

245-
/// Creates an applicative computation expression which compose effects of three Applicatives.
245+
/// Creates a (sequential) applicative computation expression which compose effects of three Applicatives.
246246
let applicative3<'``Applicative1<Applicative2<Applicative3<'T>>>``> = ApplicativeBuilder3<'``Applicative1<Applicative2<Applicative3<'T>>>``> ()
247247

248248
/// Creates a (non sequential) applicative computation expression.
249-
let zapp<'``Applicative<'T>``> = ZipApplicativeBuilder<'``Applicative<'T>``> ()
249+
let app<'``ZipApplicative<'T>``> = ZipApplicativeBuilder<'``ZipApplicative<'T>``> ()
250250

251251
/// Creates a (non sequential) applicative computation expression which compose effects of two Applicatives.
252-
let zapp2<'``Applicative1<Applicative2<'T>>``> = ZipApplicativeBuilder2<'``Applicative1<Applicative2<'T>>``> ()
252+
let app2<'``ZipApplicative1<ZipApplicative2<'T>>``> = ZipApplicativeBuilder2<'``ZipApplicative1<ZipApplicative2<'T>>``> ()
253253

254254
#endif

tests/FSharpPlus.Tests/Applicatives.fs

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ module Applicatives =
2020

2121
[<Test>]
2222
let zipApply () =
23-
let arr1 = zapp2 {
23+
let arr1 = app2 {
2424
let! x1 = async { return [|1; 2; 3|] }
2525
and! x2 = async { return [|10; 20; 30|] }
2626
and! x3 = async { return [|100; 200; 300|] }

0 commit comments

Comments
 (0)