about summary refs log tree commit diff
path: root/src/lib
AgeCommit message (Collapse)AuthorLines
2011-11-01Organize std.rc and make exports explicitBrian Anderson-51/+77
2011-11-01Add should_fail annotation for unit testsMatt Brubeck-14/+23
This allows test cases to assert that a function is expected to fail. Tests annotated with "should_fail" will succeed only if the function fails.
2011-10-31Add a char::to_digit functionMatt Brubeck-10/+11
2011-10-31Correct handling of non-numeric chars in parse_bufMatt Brubeck-2/+18
Without this fix, int::parse_buf and uint::parse_buf return incorrect results for any strings that contain non-numeric characters. Fixes #1102.
2011-10-31Rename std::str::chars to iter_charsMarijn Haverbeke-3/+3
2011-10-31Add a way to iterate over a str's chars to std::strMarijn Haverbeke-1/+16
2011-10-30Fix int::parse_buf for negative numbers (#1102)Matt Brubeck-2/+4
2011-10-30Make float::from_str ignore whitespace (#1089)Matt Brubeck-3/+21
Discard leading and trailing whitespace, for consistency with C/JS/Java/etc. Also, don't allow floating point numbers that start or end with 'e'.
2011-10-29stdlib: Fix type in docs for result::chanBrian Anderson-1/+1
2011-10-29stdlib: Add vec::concat to concatenate a vector of vectorsBrian Anderson-0/+13
Compare to str::concat
2011-10-29stdlib: Make io failures recoverable by returning a resultBrian Anderson-17/+28
2011-10-29stdlib: Add result::chain for composing resultsBrian Anderson-8/+31
2011-10-29stdlib: Add result moduleBrian Anderson-0/+87
This contains a result tag with ok(T) and error(U) variants. I expect to use it for error handling on functions that can recover from errors, like in the io module.
2011-10-28stdlib: Add fs::splitextBrian Anderson-0/+49
Splits a path into the filename + extension
2011-10-28stdlib: Add vec::init. Returns all but the last element.Brian Anderson-1/+17
Per haskell, to go with head/tail, and last.
2011-10-28Change behavior of float::nonpositive/nonnegativeMatt Brubeck-6/+28
Rather than being defined as !positive and !negative, these should act the same as negative and positive (respectively). The only effect of this change should be that all four functions will now return false for NaN.
2011-10-28Use IEEE 754 semantics for NaN (Issue #1084)Matt Brubeck-0/+3
2011-10-28+0.0 should be positive and -0.0 should be negative.Matt Brubeck-6/+6
2011-10-28stdlib: Replace an unsafe cast with ptr::nullBrian Anderson-2/+1
2011-10-28stdlib: Make reinterpret_cast and leak unsafeBrian Anderson-13/+17
2011-10-28stdlib: Make merge_sort take [mutable? T]Brian Anderson-2/+3
2011-10-28stdlib: Fix the list::foldl implementationBrian Anderson-7/+7
2011-10-28stdlib: Rename list::length to list::len to match vec::lenBrian Anderson-2/+2
2011-10-28stdlib: Rename the 'ls_' param in list functions to 'ls'Brian Anderson-7/+7
2011-10-28stdlib: Make list::from_vec more efficientBrian Anderson-7/+1
2011-10-28stdlib: make list::from_vec take [mutable? T]Brian Anderson-1/+1
2011-10-28Make shared kind the default only for generic functionsMarijn Haverbeke-16/+10
You almost never want a function with pinned type params. For types, objects, resources, and tags, pinned types are actually often more sane. For most of these, shared rarely makes sense. Only tricky case is objs -- you'll have to think about the kinds you want there. Issue #1076
2011-10-28Move to short type parameter keywordsMarijn Haverbeke-15/+15
Issue #1076
2011-10-27Add std::vec::foldrBrian Anderson-1/+14
2011-10-27Add reverse iterators to std::vecBrian Anderson-0/+29
2011-10-27Remove std::vec::eachi. Same function as iter2.Brian Anderson-24/+11
2011-10-27Implement vec::foldl without recursionBrian Anderson-6/+6
2011-10-27Add std::vec::iterBrian Anderson-1/+12
2011-10-27Remove std::int::eq_aliasBrian Anderson-3/+0
This is the exact same function as int::eq
2011-10-27Make option::is_some option::is_none pureBrian Anderson-2/+2
2011-10-27Make vec::reversed take [mutable? T]Brian Anderson-1/+1
2011-10-27Make std:vec::grow_fn take an init_op typeBrian Anderson-2/+2
2011-10-27Reorder std::vec so the documentation renders betterBrian Anderson-34/+35
Put all types first, then predicates, then functions
2011-10-27Convert various functions in std to take lambda blocksBrian Anderson-5/+5
2011-10-27Document std::bitvBrian Anderson-3/+125
2011-10-27Add more std docsBrian Anderson-27/+145
2011-10-27Remove uint::max/min in favor if math::max/minMatt Brubeck-4/+0
2011-10-27Add documentation to std::uintMatt Brubeck-10/+73
2011-10-27Add std documentation for float and u8 functionsMatt Brubeck-0/+41
2011-10-27Mark uint add/sub/mul/div/rem functions as pureMatt Brubeck-5/+5
2011-10-27Add function aliases for float operatorsMatt Brubeck-0/+30
2011-10-27Add more std docsBrian Anderson-7/+164
2011-10-27Cleanup in std::taskBrian Anderson-14/+14
2011-10-27More std docsBrian Anderson-3/+26
2011-10-26Remove task::join_idBrian Anderson-5/+0
This is the old, racy way of joining to a task. It is no longer used.