-
mod a {
pub fn b() { print!("1") }
}
mod c {
pub fn b() {
print!("2")
}
}
pub use c::b;
pub use a::*;
fn main() {
b(); // this prints "2"!
}
-
I tried this code:
```rust
fn static_str_identity()
-> for (
[&'static &'s (); 0],
&'static str,
)
{
|s: &str| (
[],
s,
)
}
fn main()
{
let f = stat…
-
### Bug Description
I have a pyclass+enum to generate a enum class, and I want it to behavoie like `enum.Enum`, so I write a `__eq__` method to support both `Booking.STRICT == Booking.STRICT` and `…
-
Enable the use and customization of PTT, SYM and FN keys. AFAIK these keys have no function on the Titan Pocket (unsure about other Titan devices). I can't tell if the key event is not emitted correct…
-
We haven't decided which one to use.
-
Write a wrapper around `.bind` and `.on`, which, prefers the latter.
-
Can you confirm the below behavoir, as in normal function defs do not throw an error if given too many args.
If it is not correct, can you give me a chance to try and fix it? Very curious about the p…
-
We could have a `promise(fn)` method which returns a promise, and calls the function with the resolver for that promise.
## Advantages
- discoverable via `.constructor` property of a promise (see #5)
…
-
Hi,everyone
I see activation_fn function in ops.py, but I can't find where it's defined and implemented.
I'm also confused about this function,
def binarize(images):
return (np.random.uniform(si…
-
`lay-mines!` `apply-clues!` - almost identical, we do `(update-state! [:grid] #(into [] (map (fn [a]) %)))`
`blank-game!` is similar as well, but no map or into