ThePipeline.build() method signature in Pipeline.kt and pipelines.kt are different. How does this work. Can someone explain?

  Kiến thức lập trình

The Pipeline.build() method defined inside Pipeline.kt is supposed to take in a string and a lambda when invoked but inside pipelines.kt file when it is used it takes in only a name and the body. how is this possible. can someone explain the syntax ?

Pipeline.kt

pipelines.kt

LEAVE A COMMENT