aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authornsfisis <nsfisis@gmail.com>2023-04-12 12:53:27 +0900
committernsfisis <nsfisis@gmail.com>2023-04-12 12:53:27 +0900
commita0374d44adeeabaa4f109649810871a324aed3f5 (patch)
tree4de6d8e6e31e797d514463ecd1544f072138f291
parent989992278475aefa0f4679d89896cba462f5de9a (diff)
downloadphpstudy-151-slides-main.tar.gz
phpstudy-151-slides-main.tar.zst
phpstudy-151-slides-main.zip
枚数を削減HEADmain
-rw-r--r--slide.pdfbin205906 -> 202360 bytes
-rw-r--r--slide.saty60
2 files changed, 4 insertions, 56 deletions
diff --git a/slide.pdf b/slide.pdf
index 4ecf896..422d9b8 100644
--- a/slide.pdf
+++ b/slide.pdf
Binary files differ
diff --git a/slide.saty b/slide.saty
index f8f38d5..7269d8c 100644
--- a/slide.saty
+++ b/slide.saty
@@ -64,19 +64,7 @@ assert($xs[3] === 42);
`#);
>
- +frame{PHP クイズ}<
- +code-block-php(`<?php
-
-$xs = [
- "a" => 1,
- "b" => 2,
- "c" => 3,
-];
-$xs[] = 42;
-`);
- >
-
- +frame{PHP クイズ}<
+ +frame{末尾はどこ?}<
+code-block-php(`<?php
$xs = [
@@ -85,23 +73,10 @@ $xs = [
"c" => 3,
];
$xs[] = 42;
-assert($xs[0] === 42);
-`);
- >
-
- +frame{PHP クイズ}<
- +code-block-php(`<?php
-
-$xs = [
- 0 => 1,
- 1 => 2,
- 3 => 4,
-];
-$xs[] = 42;
`);
>
- +frame{PHP クイズ}<
+ +frame{末尾はどこ?}<
+code-block-php(`<?php
$xs = [
@@ -110,23 +85,10 @@ $xs = [
3 => 4,
];
$xs[] = 42;
-assert($xs[4] === 42);
-`);
- >
-
- +frame{PHP クイズ}<
- +code-block-php(`<?php
-
-$xs = [
- -10 => 1,
- -7 => 2,
- -5 => 4,
-];
-$xs[] = 42;
`);
>
- +frame{PHP クイズ}<
+ +frame{末尾はどこ?}<
+code-block-php(`<?php
$xs = [
@@ -135,22 +97,10 @@ $xs = [
-5 => 4,
];
$xs[] = 42;
-assert($xs[-4] === 42);
-`);
- >
-
- +frame{PHP クイズ}<
- +code-block-php(`<?php
-
-$xs = [];
-$xs[10] = 1;
-$xs[] = 42;
-$xs[5] = 2;
-$xs[] = 57;
`);
>
- +frame{PHP クイズ}<
+ +frame{末尾はどこ?}<
+code-block-php(`<?php
$xs = [];
@@ -158,8 +108,6 @@ $xs[10] = 1;
$xs[] = 42;
$xs[5] = 2;
$xs[] = 57;
-assert($xs[11] === 42);
-assert($xs[12] === 57);
`);
>