Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for DropWhile (0.3 sec)

  1. test/typeparam/issue48645a.go

    	"fmt"
    	"reflect"
    )
    
    type Stream[T any] struct {
    }
    
    func (s Stream[T]) DropWhile() Stream[T] {
    	return Pipe[T, T](s)
    }
    
    func Pipe[T, R any](s Stream[T]) Stream[R] {
    	it := func(fn func(R) bool) {
    	}
    	fmt.Println(reflect.TypeOf(it).String())
    	return Stream[R]{}
    }
    
    func main() {
    	s := Stream[int]{}
    	s = s.DropWhile()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 01 19:45:34 UTC 2022
    - 510 bytes
    - Viewed (0)
  2. test/typeparam/issue48645b.go

    func (s Stream[T]) Iterate(fn func(T) bool) {
    	if s.it == nil {
    		return
    	}
    	s.it.Iterate(fn)
    }
    
    func FromIterator[T any](it Iterator[T]) Stream[T] {
    	return Stream[T]{it: it}
    }
    
    func (s Stream[T]) DropWhile(fn func(T) bool) Stream[T] {
    	return Pipe[T, T](s, func(t T) (T, bool) {
    		return t, true
    	})
    }
    
    func Pipe[T, R any](s Stream[T], op func(d T) (R, bool)) Stream[R] {
    	it := func(fn func(R) bool) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 01 19:45:34 UTC 2022
    - 1.4K bytes
    - Viewed (0)
  3. testing/internal-integ-testing/src/main/groovy/org/gradle/integtests/fixtures/configurationcache/ConfigurationCacheProblemsFixture.groovy

        }
    
        private static String linesBetween(File file, String beginLine, String endLine) {
            return file.withReader('utf-8') { reader ->
                reader.lines().iterator()
                    .dropWhile { it != beginLine }
                    .drop(1)
                    .takeWhile { it != endLine }
                    .collect()
                    .join('\n')
            }
        }
    
        @Nullable
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 22.8K bytes
    - Viewed (0)
  4. analysis/analysis-api-fir/src/org/jetbrains/kotlin/analysis/api/fir/references/FirReferenceResolveHelper.kt

                        } else {
                            qualified.collectDescendantsOfType<KtSimpleNameExpression>()
                        }
                    refs.map { it.getReferencedName() }
                        .dropWhile { it == ROOT_PREFIX_FOR_IDE_RESOLUTION_MODE }
                        .joinToString(separator = ".")
                        .let(::FqName)
                }
            }
        }
    
    Registered: Wed Jun 12 09:53:16 UTC 2024
    - Last Modified: Mon Jun 10 20:18:28 UTC 2024
    - 37K bytes
    - Viewed (0)
Back to top