Skip to content
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

Tutorial on Mutability and Imperative Programming #1529

Merged
merged 41 commits into from
Dec 14, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
41 commits
Select commit Hold shift + click to select a range
429d51d
Tutorial on Mutability and Imperative Programming
Sep 18, 2023
9a488c8
Remove french sentence
Sep 18, 2023
45c27d3
Discussion with Sabine
Sep 22, 2023
9333695
Intro, refs and mutable fields
Oct 19, 2023
d927df9
Text on arrays and bytes
Oct 19, 2023
1748d9b
Add text on for and while loops
Oct 20, 2023
26c69b9
Text on encapsulated mutability
Oct 20, 2023
3e344be
Update text
Oct 20, 2023
d413582
Add tail recursion text
Oct 24, 2023
bd8af99
Add CPS text
Oct 24, 2023
6f26844
More CPS text
Oct 25, 2023
9be7283
More CPS text, cont'd
Oct 25, 2023
ec42749
More CPS text
Oct 25, 2023
a14ee92
More CPS text
Oct 25, 2023
dd71a88
Effects order
Oct 27, 2023
8416289
foo
Nov 12, 2023
bca020a
Add text on global state
Nov 15, 2023
adb678a
Remove stuff migrated to PR1770
Nov 15, 2023
c6c0a79
Add text on memoization
Nov 15, 2023
1a3e71c
dummy
Nov 16, 2023
3959490
Add Anti-Patterns
Nov 17, 2023
70e37f4
editing
sabine Nov 21, 2023
4ccaa6d
rename
sabine Nov 23, 2023
781c5fc
Review
Nov 23, 2023
eb638ea
Rename if+loops+recursion into if+recursion
Nov 24, 2023
8a0ed2e
Minor changes
Nov 27, 2023
86c04db
Use #show_type
Nov 27, 2023
4bba6d4
Minor fixes
Nov 28, 2023
6bce4fb
Include some feedback from @silene
Nov 29, 2023
914703f
Revert change creating conflict with PR1798
Nov 29, 2023
52ec288
Line editing & code check
christinerose Dec 7, 2023
877326f
Review edits
Dec 11, 2023
dec61c8
Address more review comments
Dec 12, 2023
809d146
Fix typos
Dec 12, 2023
9ba7f94
minor grammar
christinerose Dec 12, 2023
0f9f1b4
fix typo
christinerose Dec 13, 2023
4f543c6
add "body expression"
christinerose Dec 13, 2023
3adab5a
tighten syntax
christinerose Dec 13, 2023
cd72f93
minor typo fixes
christinerose Dec 13, 2023
c7ebdac
Update 0it_06_imperative.md
christinerose Dec 13, 2023
650ec94
Review edits
Dec 13, 2023
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
2 changes: 1 addition & 1 deletion data/tutorials/getting-started/1_01_a_tour_of_ocaml.md
Original file line number Diff line number Diff line change
Expand Up @@ -750,5 +750,5 @@ Other recommended tutorials:

1. [Values and Functions](/docs/values-and-functions)
1. [Basic Data Types and Pattern Matching](/docs/basic-data-types)
1. [If Statements, Loops, and Recursions](/docs/if-statements-and-loops)
1. [If Statements and Recursions](/docs/if-statements-and-loops)
1. [Lists](/docs/lists)
Original file line number Diff line number Diff line change
Expand Up @@ -363,7 +363,7 @@ This tutorial is the last of the "Getting Started" series. Moving forward, you h
Recommended next tutorials:
1. [Values and Functions](/docs/values-and-functions)
1. [Basic Data Types and Pattern Matching](/docs/basic-data-types)
1. [If Statements, Loops, and Recursions](/docs/if-statements-and-loops)
1. [If Statements and Recursions](/docs/if-statements-and-loops)
1. [Lists](/docs/lists)

<!--
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
---
id: if-statements-and-loops
title: If Statements, Loops, and Recursions
title: If Statements and Recursions
description: >
Learn basic control-flow and recursion in OCaml
category: "Introduction"
---

# If Statements, Loops, and Recursions
# If Statements and Recursions

As in other OCaml.org documentation, the code examples will either be something you can test or
an example of code. Code snippets that begin with the CLI prompt `#`, end with `;;`, and have a
Expand Down
2 changes: 1 addition & 1 deletion data/tutorials/language/0it_05_labels.md
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ example:
```

So far, this is just the imperative "mutable records" that we talked
about in ["If Statements, Loops, and Recursions"](https://ocaml.org/docs/if-statements-and-loops). Now the complex part is the `open_window`
about in ["If Statements and Recursions"](https://ocaml.org/docs/if-statements-and-loops). Now the complex part is the `open_window`
function. This function takes *4* arguments, three of them optional,
followed by a required, unlabelled `unit`. Let's first see this function
in action:
Expand Down
Loading