Commit Graph

2328 Commits (main)
 

Author SHA1 Message Date
Carol (Nichols || Goulding) 133892fc4e Merge pull request #57 from QuietMisdreavus/macros
add macros examples
7 years ago
Carol (Nichols || Goulding) 2ee6e22e5c Merge pull request #56 from mwilli20/patch-1
Create iterators4.rs
7 years ago
Carol (Nichols || Goulding) 4cd095466b Merge pull request #54 from jan-schreib/patch-1
ex1 is compiling
7 years ago
QuietMisdreavus 2b70161b4f add macros4 example 7 years ago
QuietMisdreavus 248d87a2dd add macros examples 7 years ago
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()
8 years ago
Jan S bfd0929cae ex1 is compiling
While trying your exercises I noticed that the ex1.rs code is already compiling.
8 years ago
sarge 2079503b21 changed URLs to https scheme where possible 8 years ago
Carol (Nichols || Goulding) 32131ae811 Incorporate changes from @pindell-matt! 🚀 8 years ago
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.
8 years ago
Carol (Nichols || Goulding) 17d830015c Too many dashes oops 8 years ago
Carol (Nichols || Goulding) 4378a2c5bf Add more hints, better test failures, etc to errorsn 8 years ago
Carol (Nichols || Goulding) 0b15e92738 Add another another error exercise 8 years ago
Carol (Nichols || Goulding) ae46dfd752 Add another error exercise 8 years ago
Carol (Nichols || Goulding) 6a376c1e3d Update the readme links, oops 8 years ago
Daan van Berkel 0cc668c012
Create tests for if1.rs
This provides standardize feedback if a solution is correct. Fixes #46.
8 years ago
Carol (Nichols || Goulding) 5029525594 Merge pull request #45 from matthewjberger/master
Update dead dining philosophers link to the 1.4.0 book example.
8 years ago
Matthew J. Berger 95669896fa Update dead dining philosophers link to the 1.4.0 book example. 8 years ago
Carol (Nichols || Goulding) 72ec3211a0 Merge pull request #44 from Zajn/zajn/update-hint-text
Update hint to reflect new variable binding name
8 years ago
Zachary T Jones e48efe3c34 Update hint to reflect new variable binding name 8 years ago
Carol (Nichols || Goulding) a046286bf8 Merge pull request #43 from laboon/wjl_add_test_instructions
Add directions on running tests
8 years ago
laboon 6e71d20086 Add directions on running tests 8 years ago
Carol (Nichols || Goulding) 3a172ccf30 Make strings2 less confusing, thank you @glenjamin!! 🎉
Fixes #41.
8 years ago
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 :)
8 years ago
Carol (Nichols || Goulding) d0f4ee1b39 Merge remote-tracking branch 'origin/pr/40' 8 years ago
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 :)
8 years ago
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.
8 years ago
Carol (Nichols || Goulding) 4587266b82 Rename the first errors exercise to be about Option, link to it 8 years ago
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".
8 years ago
Carol (Nichols || Goulding) 79f0b17473 Add some error handling exercises 8 years ago
Constantin Berhard 78014c0a73 fixed iterator1 exercise by giving the compiler less clues 8 years ago
Constantin Berhard d989bbebd0 added exercise iterator1 and its solution 8 years ago
Carol (Nichols || Goulding) 203b9167ea Merge pull request #37 from jwworth/pull_request_1460220767
Fix typo
8 years ago
Jake Worth 4d51aeedb4 Fix typo 8 years ago
Carol (Nichols || Goulding) 5d60724a51 Merge pull request #36 from jonathantorres/patch-1
Update LICENSE year.
8 years ago
Jonathan Torres 65c78fef44 Update LICENSE year. 8 years ago
Carol (Nichols || Goulding) a37ea4eb74 Ignore temporary .swp files 8 years ago
Seamus Connor ff94ef9254 Moved away from deprecated thread::sleep_ms
Refactored to use thread::sleep and time::Duration and updated link in
README.md
8 years ago
Carol (Nichols || Goulding) 89ee19802b Add links to the new primitive types exercises!!
Fixes #29, thank you @ruipserra!!
8 years ago
Carol (Nichols || Goulding) 984f1d7078 Add tuple indexing exercise from @ruipserra!! 👏
Connects to #29
8 years ago
Carol (Nichols || Goulding) bbe1dc5937 Add tuple exercise from @ruipserra! 😻 8 years ago
Carol (Nichols || Goulding) 98cde6f9b1 Add slice exercise from @ruipserra!!! 💫
Connects to #29
8 years ago
Carol (Nichols || Goulding) eed810652f Oops this is a .rs file, not a .md file 8 years ago
Carol (Nichols || Goulding) 9c39b05bac Add array exercise from @ruipserra!!! 🎆🎆🎆
Connects to #29.
8 years ago
Carol (Nichols || Goulding) 7780a3537a Merge pull request #22 from douglascorrea/master
Changing the IRC chanel to #rust-beginners
8 years ago
Douglas Correa 623cf4c90e Changing the IRC chanel to #rust-beginners 8 years ago
Carol (Nichols || Goulding) c2bd282af2 Make @ConnyOnny's example be 1st example in the `if` section! 🎉 9 years ago
Carol (Nichols || Goulding) f1ce5f4454 Merge remote-tracking branch 'origin/pr/18' 9 years ago
Carol (Nichols || Goulding) 492c6bf594 Update link in README for move semantics 1 9 years ago
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.
9 years ago