Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
CS-206 Parallelism and Concurrency 2022
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
lamp
CS-206 Parallelism and Concurrency 2022
Commits
7a5f9653
Commit
7a5f9653
authored
4 years ago
by
Guillaume Martres
Browse files
Options
Downloads
Patches
Plain Diff
fix repl multiline instructions on macOS
parent
c3629cbd
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
labs/example-lab.md
+5
-2
5 additions, 2 deletions
labs/example-lab.md
with
5 additions
and
2 deletions
labs/example-lab.md
+
5
−
2
View file @
7a5f9653
...
@@ -217,8 +217,7 @@ scala> max(List(1,3,2))
...
@@ -217,8 +217,7 @@ scala> max(List(1,3,2))
res1
:
Int
=
3
res1
:
Int
=
3
```
```
You can enter a multiline expression in the REPL by using
`Alt+Enter`
You can enter a multiline expression in the REPL by using
`Alt+Enter`
instead of
`Enter`
:
(
`Option+Enter`
on macOS) instead of
`Enter`
:
```
scala
```
scala
scala
>
if
1
==
1
then
scala
>
if
1
==
1
then
...
@@ -228,6 +227,10 @@ scala> if 1 == 1 then
...
@@ -228,6 +227,10 @@ scala> if 1 == 1 then
val
res0
:
String
=
a
val
res0
:
String
=
a
```
```
(on macOS, first go to
`Terminal -> Preference -> Profiles -> Keyboard`
and then
select
`Use Option as Meta key`
, then
`Option+Enter`
will work for multiline
expressions.)
In order to exit the Scala REPL and go back to sbt, type
`Ctrl+D`
.
In order to exit the Scala REPL and go back to sbt, type
`Ctrl+D`
.
### The worksheet mode
### The worksheet mode
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment