Hello. Is there a way to get value of the last expression evaluated by evcxr?
This works great:
>> fn test() -> String {
"hello".to_string()
}
let result = test();
>> result
"hello"
Or this:
>> let result = {
fn test() -> String {
"hello".to_string()
}
test()
};
>> result
"hello"
But I'd like to be able to do this:
>> fn test() -> String {
"hello".to_string()
}
test()
"hello"
>> let result = ...???...; // <- the last expression value?
>> result
"hello"
Can't find this in the docs. Is this possible?