Login
|
Signup
langref.org
-
perl
and
fantom
add..
all
clojure
cpp
csharp
erlang
fsharp
go
groovy
haskell
java
ocaml
php
python
ruby
scala
Home
All
Solved
Unsolved
Strings
Numbers
Regex
Lists
Maps
Structure
Files
Dates
OOP
Networking
XML
Algorithms
Misc
Parallel
View Problem
Lists
Testing
Test if a condition holds for all items of a list
Given a list, test if a certain logical condition (i.e. predicate) holds for all items of the list.
fantom
echo([2,3,4].all{ it>1 })
class SolutionXX
{
Void main()
{
echo([2,3,4].all{ it>1 })
}
}
Submit a new solution for
perl
or
fantom
There are 11 other solutions in
additional
languages (
clojure
,
cpp
,
erlang
,
fsharp
...)