diff options
| author | gingerBill <bill@gingerbill.org> | 2020-05-23 13:57:45 +0100 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2020-05-23 13:57:45 +0100 |
| commit | 99e6eba20fe1cc729ce0bbc92571e05d27dbb0b5 (patch) | |
| tree | 5d2595a8981b8b2ea0cce92357d59403fc9d1e17 /examples | |
| parent | 7d11ee605cc63aa9348524a4bc9ddee6af440791 (diff) | |
Revert demo.odin
Diffstat (limited to 'examples')
| -rw-r--r-- | examples/demo/demo.odin | 17 |
1 files changed, 2 insertions, 15 deletions
diff --git a/examples/demo/demo.odin b/examples/demo/demo.odin index 28b453d06..2485ca6f9 100644 --- a/examples/demo/demo.odin +++ b/examples/demo/demo.odin @@ -7,7 +7,6 @@ import "core:thread" import "core:time" import "core:reflect" import "core:runtime" -import "core:sort" import "intrinsics" @@ -1975,23 +1974,11 @@ pure_procedures :: proc() { } x := do_math(5); - fmt.println("do_math(5) ==", x); + fmt.println(x); } main :: proc() { - x := [?]f32{1, 1, 5, 6, 7, 8, 9, 10, 15, 15}; - i, ok := sort.binary_search(x[:], 7); - fmt.println(x); - fmt.println(i, ok); - - y := [?]string{"apple", "hello", "goodbye", "what?"}; - sort.quick_sort(y[:]); - j, y_ok := sort.binary_search(y[:], "goodbye"); - fmt.println(y); - fmt.println(j, y_ok); - - - when false { + when true { the_basics(); control_flow(); named_proc_return_parameters(); |