Skip to content

Commit

Permalink
Reformat with scalafmt 3.7.5
Browse files Browse the repository at this point in the history
Executed command: scalafmt --non-interactive
  • Loading branch information
scala-steward committed Jul 1, 2023
1 parent b2b87d7 commit b0719db
Showing 1 changed file with 17 additions and 18 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -129,31 +129,30 @@ private[binding] object Binding2Or3:

object BindingSeqOrWithFilter:
extension [A](inline bindingSeqOrWithFilter: BindingSeqOrWithFilter[A])

/** Returns a [[BindingSeq]] that maps each element of this [[BindingSeq]] via `f`
*
* @param f
* The mapper function, which may contain magic [[Binding#bind bind]] calls.
*/
inline def map[B](inline f: A => B): BindingSeq[B] = ${ Macros.map('bindingSeqOrWithFilter, 'f) }

/** Returns a [[BindingSeq]] that flat-maps each element of this [[BindingSeq]] via `f`
*
* @param f
* The mapper function, which may contain magic [[Binding#bind bind]] calls.
*/
inline def flatMap[B](inline f: A => BindingSeq[B]): BindingSeq[B] = ${
Macros.flatMap('bindingSeqOrWithFilter, 'f)
}

/** Returns a view of this [[BindingSeq]] that applied a filter of `condition`
*
* @param f
* The mapper function, which may contain magic [[Binding#bind bind]] calls.
*/
inline def withFilter(inline condition: A => Boolean): BindingSeq.WithFilter[A] = ${
Macros.withFilter('bindingSeqOrWithFilter, 'condition)
}
/** Returns a [[BindingSeq]] that flat-maps each element of this [[BindingSeq]] via `f`
*
* @param f
* The mapper function, which may contain magic [[Binding#bind bind]] calls.
*/
inline def flatMap[B](inline f: A => BindingSeq[B]): BindingSeq[B] = ${
Macros.flatMap('bindingSeqOrWithFilter, 'f)
}

/** Returns a view of this [[BindingSeq]] that applied a filter of `condition`
*
* @param f
* The mapper function, which may contain magic [[Binding#bind bind]] calls.
*/
inline def withFilter(inline condition: A => Boolean): BindingSeq.WithFilter[A] = ${
Macros.withFilter('bindingSeqOrWithFilter, 'condition)
}
end extension
end BindingSeqOrWithFilter

Expand Down

0 comments on commit b0719db

Please sign in to comment.