Skip to content

Commit c956bec

Browse files
committed
presentation: update
Signed-off-by: László Andrási <[email protected]>
1 parent c954555 commit c956bec

File tree

1 file changed

+41
-6
lines changed

1 file changed

+41
-6
lines changed

Presentation.ipynb

Lines changed: 41 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -93,26 +93,48 @@
9393
},
9494
{
9595
"cell_type": "code",
96-
"execution_count": null,
96+
"execution_count": 21,
9797
"metadata": {
9898
"slideshow": {
9999
"slide_type": "slide"
100100
}
101101
},
102-
"outputs": [],
102+
"outputs": [
103+
{
104+
"data": {
105+
"text/plain": [
106+
"defined \u001b[32mfunction\u001b[39m \u001b[36mpyramid\u001b[39m"
107+
]
108+
},
109+
"execution_count": 21,
110+
"metadata": {},
111+
"output_type": "execute_result"
112+
}
113+
],
103114
"source": [
104115
"def pyramid(ch: Char): String = (for {c <- 'A' to ch} yield c.toString) mkString \"\""
105116
]
106117
},
107118
{
108119
"cell_type": "code",
109-
"execution_count": null,
120+
"execution_count": 22,
110121
"metadata": {
111122
"slideshow": {
112123
"slide_type": "slide"
113124
}
114125
},
115-
"outputs": [],
126+
"outputs": [
127+
{
128+
"data": {
129+
"text/plain": [
130+
"\u001b[36mres21\u001b[39m: \u001b[32mString\u001b[39m = \u001b[32m\"ABC\"\u001b[39m"
131+
]
132+
},
133+
"execution_count": 22,
134+
"metadata": {},
135+
"output_type": "execute_result"
136+
}
137+
],
116138
"source": [
117139
"pyramid('C')"
118140
]
@@ -158,10 +180,23 @@
158180
},
159181
"source": [
160182
"## Section 2 - Intro to Scala\n",
161-
"0. Basic language constructs\n",
162-
"0. A tour in the frequently used language features\n"
183+
"1. Basic language constructs\n",
184+
" 1. calling methods without parentesis or dot\n",
185+
" 1. Objects, Classes, Traits Body is the contructor\n",
186+
" 1. Define methods, functions\n",
187+
" 1. Assigning values to variables (`val`, `var`)\n",
188+
" 1. `if` expression\n",
189+
" 1. `for yield`\n",
190+
"2. A tour in the frequently used language features\n"
163191
]
164192
},
193+
{
194+
"cell_type": "code",
195+
"execution_count": null,
196+
"metadata": {},
197+
"outputs": [],
198+
"source": []
199+
},
165200
{
166201
"cell_type": "markdown",
167202
"metadata": {

0 commit comments

Comments
 (0)