Fixed the code style in *.c files to two spaces indentation and add a linter named funstx to Fun. (0.39.0)
This commit is contained in:
parent
33001a7ad2
commit
03b2532474
237 changed files with 17550 additions and 13911 deletions
|
|
@ -1,24 +1,24 @@
|
|||
#!/usr/bin/env fun
|
||||
|
||||
/*
|
||||
* This file is part of the Fun programming language.
|
||||
* https://fun-lang.xyz/
|
||||
*
|
||||
* Copyright 2025 Johannes Findeisen <you@hanez.org>
|
||||
* Licensed under the terms of the Apache-2.0 license.
|
||||
* https://opensource.org/license/apache-2-0
|
||||
*/
|
||||
* This file is part of the Fun programming language.
|
||||
* https://fun-lang.xyz/
|
||||
*
|
||||
* Copyright 2025 Johannes Findeisen <you@hanez.org>
|
||||
* Licensed under the terms of the Apache-2.0 license.
|
||||
* https://opensource.org/license/apache-2-0
|
||||
*/
|
||||
|
||||
/*
|
||||
* Array Iteration Examples
|
||||
*
|
||||
* Focuses specifically on:
|
||||
* - Various iteration methods (`for`, `while`)
|
||||
* - Using array mapping functions
|
||||
* - Filtering arrays based on conditions
|
||||
* - Reducing arrays to computed values
|
||||
*- Converting between different collection types during iteration
|
||||
*/
|
||||
* Array Iteration Examples
|
||||
*
|
||||
* Focuses specifically on:
|
||||
* - Various iteration methods (`for`, `while`)
|
||||
* - Using array mapping functions
|
||||
* - Filtering arrays based on conditions
|
||||
* - Reducing arrays to computed values
|
||||
*- Converting between different collection types during iteration
|
||||
*/
|
||||
|
||||
// for-in over an array literal
|
||||
for x in [1, 2, 3]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue