You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/index.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,6 +5,6 @@ layout: default
5
5
title: Sample Programs in Every Language
6
6
---
7
7
8
-
Welcome to Sample Programs in Every Language, a collection of code snippets in as many languages as possible. Thanks for taking an interest in our collection which currently contains 1540 articles written by 295 authors.
8
+
Welcome to Sample Programs in Every Language, a collection of code snippets in as many languages as possible. Thanks for taking an interest in our collection which currently contains 1541 articles written by 296 authors.
9
9
10
10
If you'd like to contribute to this growing collection, check out our [contributing document](https://github.com/TheRenegadeCoder/sample-programs/blob/master/.github/CONTRIBUTING.md) for more information. In addition, you can explore our documentation which is organized by [project](/projects) and by [language](/languages). If you don't find what you're look for, check out our list of related [open-source projects](/related). Finally, if code isn't your thing but you'd still like to help, there are plenty of other ways to [support the project](https://therenegadecoder.com/updates/5-ways-you-can-support-the-renegade-coder/).
Copy file name to clipboardExpand all lines: docs/languages/index.md
+11-11Lines changed: 11 additions & 11 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,7 +6,7 @@ layout: default
6
6
title: Programming Languages
7
7
---
8
8
9
-
Welcome to the Languages page! Here, you'll find a list of all of the languages represented in the collection. At this time, there are 157 languages, of which 156 are tested, 1 is untestable, and 1345 code snippets.
9
+
Welcome to the Languages page! Here, you'll find a list of all of the languages represented in the collection. At this time, there are 157 languages, of which 156 are tested, 1 is untestable, and 1346 code snippets.
10
10
11
11
## Language Breakdown
12
12
@@ -54,7 +54,7 @@ Here are the percentages for each language in the collection:
Welcome to the [Reverse String](https://sampleprograms.io/projects/reverse-string) in [Nit](https://sampleprograms.io/languages/nit) page! Here, you'll find the source code for this program as well as a description of how the program works.
26
+
27
+
## Current Solution
28
+
29
+
{% raw %}
30
+
31
+
```nit
32
+
if args.length > 0 then
33
+
var word = args[0]
34
+
var reversed = ""
35
+
var i = word.length - 1
36
+
while i >= 0 do
37
+
reversed += word.chars[i].to_s
38
+
i -= 1
39
+
end
40
+
printn reversed
41
+
end
42
+
```
43
+
44
+
{% endraw %}
45
+
46
+
Reverse String in [Nit](https://sampleprograms.io/languages/nit) was written by:
47
+
48
+
- liliann19
49
+
50
+
If you see anything you'd like to change or update, [please consider contributing](https://github.com/TheRenegadeCoder/sample-programs).
51
+
52
+
## How to Implement the Solution
53
+
54
+
No 'How to Implement the Solution' section available. [Please consider contributing](https://github.com/TheRenegadeCoder/sample-programs-website).
55
+
56
+
## How to Run the Solution
57
+
58
+
No 'How to Run the Solution' section available. [Please consider contributing](https://github.com/TheRenegadeCoder/sample-programs-website).
0 commit comments