Skip to content

filterWith -> withFilter #702

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Feb 28, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ Slijedi komplikovaniji primjer koji izračunava sve parove brojeva između `0` i

Ovaj primjer pokazuje da komprehensije nisu ograničene samo na liste.
Prethodni program koristi iteratore (a ne liste).
Svaki tip podatka koji podržava operacije `filterWith`, `map`, i `flatMap` (s odgovarajućim tipovima) može biti korišten u komprehensijama.
Svaki tip podatka koji podržava operacije `withFilter`, `map`, i `flatMap` (s odgovarajućim tipovima) može biti korišten u komprehensijama.

Ovo je izlaz programa:

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ Aquí se muestra un ejemplo más complicado que computa todos los pares de núme
}
}

Este ejemplo muestra que las comprensiones no están restringidas solo a listas. El programa anterior usa iteradores en su lugar. Cualquier tipo de datos que soporte las operaciones `filterWith`, `map`, y `flatMap` (con los tipos apropiados) puede ser usado en la comprensión de secuencias.
Este ejemplo muestra que las comprensiones no están restringidas solo a listas. El programa anterior usa iteradores en su lugar. Cualquier tipo de datos que soporte las operaciones `withFilter`, `map`, y `flatMap` (con los tipos apropiados) puede ser usado en la comprensión de secuencias.

Esta es la salida del programa:

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ language: ko
}
}

이 예제는 컴프리헨션이 리스트에만 국한되지 않는다는 것을 보여준다. 리스트 대신에 이 프로그램에서는 이터레이터를 사용하였다. `filterWith`, `map`, `flatMap`기능을 지원하는 모든 데이터타입이 시퀀스 컴프리헨션에 이용될 수 있다.
이 예제는 컴프리헨션이 리스트에만 국한되지 않는다는 것을 보여준다. 리스트 대신에 이 프로그램에서는 이터레이터를 사용하였다. `withFilter`, `map`, `flatMap`기능을 지원하는 모든 데이터타입이 시퀀스 컴프리헨션에 이용될 수 있다.

아래는 이 프로그램의 결과값이다:

Expand All @@ -56,4 +56,4 @@ language: ko
println(s"($i, $j)")
}

윤창석, 이한욱 옮김, 고광현 수정
윤창석, 이한욱 옮김, 고광현 수정
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ object ComprehensionTest2 extends App {
}
```

Este exemplo mostra que as compreensões não estão restritas às listas. Pois o programa anterior usa iteradores. Todo tipo de dados que suporta as operações `filterWith`, `map`, e `flatMap` (com os tipos apropriados) pode ser usado em compreensões de sequência.
Este exemplo mostra que as compreensões não estão restritas às listas. Pois o programa anterior usa iteradores. Todo tipo de dados que suporta as operações `withFilter`, `map`, e `flatMap` (com os tipos apropriados) pode ser usado em compreensões de sequência.

Aqui está a saída do programa:

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ object ComprehensionTest2 extends App {
}
```

This example shows that comprehensions are not restricted to lists. The previous program uses iterators instead. Every datatype that supports the operations `filterWith`, `map`, and `flatMap` (with the proper types) can be used in sequence comprehensions.
This example shows that comprehensions are not restricted to lists. The previous program uses iterators instead. Every datatype that supports the operations `withFilter`, `map`, and `flatMap` (with the proper types) can be used in sequence comprehensions.

Here's the output of the program:

Expand Down