Commit graph

726 commits

Author SHA1 Message Date
Carol (Nichols || Goulding)
4cd095466b Merge pull request #54 from jan-schreib/patch-1
ex1 is compiling
2017-03-19 09:57:18 -04:00
QuietMisdreavus
2b70161b4f add macros4 example 2017-03-17 09:47:45 -05:00
QuietMisdreavus
248d87a2dd add macros examples 2017-03-17 09:30:29 -05:00
Matthew Williamson
e0274e07d0 Create iterators4.rs
Tackles https://github.com/carols10cents/rustlings/issues/15 . I think this allows for varying levels of difficulty depending on a users background. But ideally people can move there way up from 1, 2, 3 (Numbers below).

1. 
    let mut result = 1;
    for i in 1..x + 1 {
        result *= i;
    }
    result

2. 
    match x {
        0 | 1 => 1,
        x => x * factorial(x - 1),
    }
3. 
    (1..x + 1).product()
2017-01-05 22:38:07 -05:00
Jan S
bfd0929cae ex1 is compiling
While trying your exercises I noticed that the ex1.rs code is already compiling.
2017-01-04 00:22:23 +01:00
sarge
2079503b21 changed URLs to https scheme where possible 2016-08-15 07:02:36 +03:00
Carol (Nichols || Goulding)
32131ae811 Incorporate changes from @pindell-matt! 🚀 2016-07-05 09:00:56 -04:00
Matt Pindell
cdcec9ca20 Update "strings2.rs" link
Add 1 new-line to the "strings2.rs" link on rust playground so that the hints at the bottom are completely obscured on initial load.

Used the "Shorten Link" option from the Playground to create the new url.
2016-07-04 13:58:21 -06:00
Carol (Nichols || Goulding)
17d830015c Too many dashes oops 2016-06-21 11:11:41 -04:00
Carol (Nichols || Goulding)
4378a2c5bf Add more hints, better test failures, etc to errorsn 2016-06-21 11:10:21 -04:00
Carol (Nichols || Goulding)
0b15e92738 Add another another error exercise 2016-06-21 10:40:32 -04:00
Carol (Nichols || Goulding)
ae46dfd752 Add another error exercise 2016-06-21 10:07:21 -04:00
Carol (Nichols || Goulding)
6a376c1e3d Update the readme links, oops 2016-06-16 11:38:32 -04:00
Daan van Berkel
0cc668c012
Create tests for if1.rs
This provides standardize feedback if a solution is correct. Fixes #46.
2016-06-14 17:07:36 +02:00
Carol (Nichols || Goulding)
5029525594 Merge pull request #45 from matthewjberger/master
Update dead dining philosophers link to the 1.4.0 book example.
2016-06-08 09:27:48 -04:00
Matthew J. Berger
95669896fa Update dead dining philosophers link to the 1.4.0 book example. 2016-06-07 15:56:55 -07:00
Carol (Nichols || Goulding)
72ec3211a0 Merge pull request #44 from Zajn/zajn/update-hint-text
Update hint to reflect new variable binding name
2016-05-31 14:10:12 -04:00
Zachary T Jones
e48efe3c34 Update hint to reflect new variable binding name 2016-05-25 20:23:33 -04:00
Carol (Nichols || Goulding)
a046286bf8 Merge pull request #43 from laboon/wjl_add_test_instructions
Add directions on running tests
2016-05-14 17:21:44 -04:00
laboon
6e71d20086 Add directions on running tests 2016-05-12 19:59:44 -04:00
Carol (Nichols || Goulding)
3a172ccf30 Make strings2 less confusing, thank you @glenjamin!! 🎉
Fixes #41.
2016-04-19 16:15:21 -04:00
Carol (Nichols || Goulding)
4bf727cbf7 Incorporate ConnyOnny's iterator exercise!
- Deciding not to have solutions in the tree right now, until I figure
  out a more general way to handle that.
- The assertions work really great as tests, actually!
- Simplifying a few of the side points-- I think they deserve their own
  exercises :)
2016-04-19 16:00:30 -04:00
Carol (Nichols || Goulding)
d0f4ee1b39 Merge remote-tracking branch 'origin/pr/40' 2016-04-16 11:32:10 -04:00
Carol (Nichols || Goulding)
65cc4cf12c Add jleedev's try!, From, and Error exercise!
Made some modifications to clarify the structure since this is a bigger
example, also added some more hints.

Name it errorsn since I think we could still use more exercises between
errors1 and errorsn, but I've been sitting on these too long as it is :)
2016-04-16 11:29:33 -04:00
Carol (Nichols || Goulding)
c21fb10ae4 Add an exercise for rewriting Option to be Result
In the case where you'd like to provide an explanation why the function
isn't able to do the thing, rather than just not doing the thing.
2016-04-16 10:53:39 -04:00
Carol (Nichols || Goulding)
4587266b82 Rename the first errors exercise to be about Option, link to it 2016-04-16 10:53:39 -04:00
Carol (Nichols || Goulding)
d145c6334f Start an error handling section and move the result exercise there
I think this is a better categorization than "standard library types".
2016-04-16 10:53:39 -04:00
Carol (Nichols || Goulding)
79f0b17473 Add some error handling exercises 2016-04-16 10:53:39 -04:00
Constantin Berhard
78014c0a73 fixed iterator1 exercise by giving the compiler less clues 2016-04-14 12:48:18 +02:00
Constantin Berhard
d989bbebd0 added exercise iterator1 and its solution 2016-04-14 12:16:04 +02:00
Carol (Nichols || Goulding)
203b9167ea Merge pull request #37 from jwworth/pull_request_1460220767
Fix typo
2016-04-09 17:42:05 -04:00
Jake Worth
4d51aeedb4 Fix typo 2016-04-09 12:52:53 -04:00
Carol (Nichols || Goulding)
5d60724a51 Merge pull request #36 from jonathantorres/patch-1
Update LICENSE year.
2016-03-27 20:16:52 -04:00
Jonathan Torres
65c78fef44 Update LICENSE year. 2016-03-27 15:57:49 -04:00
Carol (Nichols || Goulding)
a37ea4eb74 Ignore temporary .swp files 2016-02-09 15:23:50 -05:00
Seamus Connor
ff94ef9254 Moved away from deprecated thread::sleep_ms
Refactored to use thread::sleep and time::Duration and updated link in
README.md
2016-02-08 14:26:23 -07:00
Carol (Nichols || Goulding)
89ee19802b Add links to the new primitive types exercises!!
Fixes #29, thank you @ruipserra!!
2016-02-07 12:35:57 -05:00
Carol (Nichols || Goulding)
984f1d7078 Add tuple indexing exercise from @ruipserra!! 👏
Connects to #29
2016-02-07 12:34:53 -05:00
Carol (Nichols || Goulding)
bbe1dc5937 Add tuple exercise from @ruipserra! 😻 2016-02-07 12:30:08 -05:00
Carol (Nichols || Goulding)
98cde6f9b1 Add slice exercise from @ruipserra!!! 💫
Connects to #29
2016-02-07 12:24:38 -05:00
Carol (Nichols || Goulding)
eed810652f Oops this is a .rs file, not a .md file 2016-02-07 12:15:30 -05:00
Carol (Nichols || Goulding)
9c39b05bac Add array exercise from @ruipserra!!! 🎆🎆🎆
Connects to #29.
2016-02-07 12:12:24 -05:00
Carol (Nichols || Goulding)
7780a3537a Merge pull request #22 from douglascorrea/master
Changing the IRC chanel to #rust-beginners
2016-02-03 19:46:46 -05:00
Douglas Correa
623cf4c90e Changing the IRC chanel to #rust-beginners 2016-02-03 16:37:51 -02:00
Carol (Nichols || Goulding)
c2bd282af2 Make @ConnyOnny's example be 1st example in the if section! 🎉 2015-11-17 17:59:18 -05:00
Carol (Nichols || Goulding)
f1ce5f4454 Merge remote-tracking branch 'origin/pr/18' 2015-11-17 17:48:53 -05:00
Carol (Nichols || Goulding)
492c6bf594 Update link in README for move semantics 1 2015-11-17 17:36:58 -05:00
Todd Thomas
b345aa9cbf Fix typo in hint for move_semantics1.rs.
When I compile the unedited example in the playground, I get the
error on line 10, not line 8. That's the case for stable, beta,
and nightly.
2015-11-16 17:52:41 -07:00
Constantin Berhard
802e6ac270 exercise for the ternary operator
i.e. if-then-else *expression* in Rust
2015-10-28 00:45:39 +01:00
Carol (Nichols || Goulding)
dbad16021c Add some more common String/&str idioms 2015-10-04 11:42:09 -04:00