For (CloudMonk.io)

for



Return to for loop, for statement, CPP for, Reserved Words - Keywords, Programming Glossary

----

* List 30 programming languages support the for Reserved Word. Answer in MediaWiki syntax with the URL of the official documentation for each language reference. Also list the Wikipedia URL if appropriate.


Creating a comprehensive list of 30 programming languages that support the `for` reserved word or its functional equivalent for looping constructs, along with their official documentation and Wikipedia URLs where available, is an extensive task. Here's a list that includes a variety of languages, highlighting their approach to iteration and looping constructs:

* C++
** Official Documentation: [https://en.cppreference.com/w/cpp/keyword/for]
** Wikipedia URL: [https://en.wikipedia.org/wiki/C%2B%2B]

* Java
** Official Documentation: [https://docs.oracle.com/javase/tutorial/java/nutsandbolts/for.html]
** Wikipedia URL: [https://en.wikipedia.org/wiki/Java_(programming_language)]

* Python
** Official Documentation: [https://docs.python.org/3/tutorial/controlflow.html#for-statements]
** Wikipedia URL: [https://en.wikipedia.org/wiki/Python_(programming_language)]

* C#
** Official Documentation: [https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/for]
** Wikipedia URL: [https://en.wikipedia.org/wiki/C_Sharp_(programming_language)]

* JavaScript
** Official Documentation: [https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Loops_and_iteration#for_statement]
** Wikipedia URL: [https://en.wikipedia.org/wiki/JavaScript]

* TypeScript
** Official Documentation: [https://www.typescriptlang.org/docs/handbook/iterators-and-generators.html]
** Wikipedia URL: [https://en.wikipedia.org/wiki/TypeScript]

* PHP
** Official Documentation: [https://www.php.net/manual/en/control-structures.for.php]
** Wikipedia URL: [https://en.wikipedia.org/wiki/PHP]

* Go
** Official Documentation: [https://golang.org/doc/effective_go#loops]
** Wikipedia URL: [https://en.wikipedia.org/wiki/Go_(programming_language)]

* Rust
** Official Documentation: [https://doc.rust-lang.org/book/ch03-05-control-flow.html#looping-through-a-collection-with-for]
** Wikipedia URL: [https://en.wikipedia.org/wiki/Rust_(programming_language)]

* Swift
** Official Documentation: [https://docs.swift.org/swift-book/LanguageGuide/ControlFlow.html#ID121]
** Wikipedia URL: [https://en.wikipedia.org/wiki/Swift_(programming_language)]

* Kotlin
** Official Documentation: [https://kotlinlang.org/docs/control-flow.html#for-loops]
** Wikipedia URL: [https://en.wikipedia.org/wiki/Kotlin_(programming_language)]

* Scala
** Official Documentation: [https://docs.scala-lang.org/tour/tour-of-scala.html#functional-loops]
** Wikipedia URL: [https://en.wikipedia.org/wiki/Scala_(programming_language)]

* Ruby
** Official Documentation: [https://ruby-doc.org/core-2.7.0/doc/syntax/control_expressions_rdoc.html#label-for+Loop]
** Wikipedia URL: [https://en.wikipedia.org/wiki/Ruby_(programming_language)]

* Perl
** Official Documentation: [https://perldoc.perl.org/perlsyn#Compound-Statements]
** Wikipedia URL: [https://en.wikipedia.org/wiki/Perl]

* Lua
** Official Documentation: [https://www.lua.org/manual/5.4/manual.html#3.3.5]
** Wikipedia URL: [https://en.wikipedia.org/wiki/Lua_(programming_language)]

* Objective-C
** Official Documentation: [https://developer.apple.com/library/archive/documentation/Cocoa/Conceptual/ProgrammingWithObjectiveC/Introduction/Introduction.html]
** Wikipedia URL: [https://en.wikipedia.org/wiki/Objective-C]

* Dart
** Official Documentation: [https://dart.dev/guides/language/language-tour#for-loops]
** Wikipedia URL: [https://en.wikipedia.org/wiki/Dart_(programming_language)]

* Haskell
** Official Documentation: [https://www.haskell.org/onlinereport/haskell2010/haskellch3.html#x8-470003.13]
** Wikipedia URL: [https://en.wikipedia.org/wiki/Haskell_(programming_language)]

* Erlang
** Official Documentation: [http://erlang.org/doc/getting_started/seq_prog.html#loops]
** Wikipedia URL: [https://en.wikipedia.org/wiki/Erlang_(programming_language)]

* Clojure
** Official Documentation: [https://clojure.org/guides/learn/flow#_looping]
** Wikipedia URL: [https://en.wikipedia.org/wiki/Clojure]

* F#
** Official Documentation: [https://docs.microsoft.com/en-us/dotnet/fsharp/language-reference/loops-for]
** Wikipedia URL: [https://en.wikipedia.org/wiki/F_Sharp_(programming_language)]

* Visual Basic .NET
** Official Documentation: [https://docs.microsoft.com/en-us/d

otnet/visual-basic/language-reference/statements/for-next-statement]
** Wikipedia URL: [https://en.wikipedia.org/wiki/Visual_Basic_.NET]

* Pascal
** Official Documentation: [https://www.freepascal.org/docs-html/ref/refsu58.html#x150-15700013.2.3]
** Wikipedia URL: [https://en.wikipedia.org/wiki/Pascal_(programming_language)]

* Ada
** Official Documentation: [http://www.adaic.org/resources/add_content/standards/05rm/html/RM-5-5.html]
** Wikipedia URL: [https://en.wikipedia.org/wiki/Ada_(programming_language)]

* Fortran
** Official Documentation: [https://gcc.gnu.org/onlinedocs/gfortran/DO.html]
** Wikipedia URL: [https://en.wikipedia.org/wiki/Fortran]

* MATLAB
** Official Documentation: [https://www.mathworks.com/help/matlab/ref/for.html]
** Wikipedia URL: [https://en.wikipedia.org/wiki/MATLAB]

* Groovy
** Official Documentation: [http://groovy-lang.org/structure.html#_looping_structures]
** Wikipedia URL: [https://en.wikipedia.org/wiki/Apache_Groovy]

* R
** Official Documentation: [https://cran.r-project.org/doc/manuals/r-release/R-lang.html#For-statements]
** Wikipedia URL: [https://en.wikipedia.org/wiki/R_(programming_language)]

* Julia
** Official Documentation: [https://docs.julialang.org/en/v1/manual/control-flow/#man-loops-1]
** Wikipedia URL: [https://en.wikipedia.org/wiki/Julia_(programming_language)]

* Elm
** Official Documentation: [https://guide.elm-lang.org/effects/]
** Wikipedia URL: [https://en.wikipedia.org/wiki/Elm_(programming_language)]
```

This list provides an overview of the `for` loop's presence and use across a wide range of programming languages, showcasing the diversity in syntax and application while maintaining a core functionality of iteration over data structures or ranges.

----


https://en.cppreference.com/w/cpp/keyword/for

----

* What programming languages support the Reserved Word for. Answer in MediaWiki syntax with the URL of the official documentation for each language reference.


Here are some programming languages that support the for reserved word along with links to their official documentation:


Programming Languages Supporting 'for' Keyword



* C - https://devdocs.io/c/language/for - C Documentation

* C++ - https://devdocs.io/cpp/language/for - CPP Documentation | C++ Documentation

* Java - https://docs.oracle.com/javase/tutorial/java/nutsandbolts/for.html - Java Documentation

* JavaScript - https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/for - JavaScript Documentation

* Python - https://docs.python.org/3/tutorial/controlflow.html#for-statements - Python Documentation

* Ruby - https://ruby-doc.org/core-3.0.3/doc/syntax/control_expressions_rdoc.html#label-for+Loop - Ruby Documentation

* Go - https://golang.org/ref/spec#For_statements - Go Documentation

* TypeScript - https://typescriptlang.org/docs/handbook/2/everyday-types.html#using-for-loops - TypeScript Documentation

* Swift - https://docs.swift.org/swift-book/ReferenceManual/Statements.html#ID473 - Swift Documentation

* PHP - https://www.php.net/manual/en/control-structures.for.php - PHP Documentation

* Perl - https://perldoc.perl.org/perlsyn.html#Foreach-Loops - Perl Documentation


These languages use the `for` keyword to create loops for iterating over collections or executing a block of code a certain number of times. You can find more details about its usage in each language's documentation.

----

{{wp>for loop}}

{{navbar_reserved_words}}

{{navbar_programming}}

{{navbar_footer}}