修改、新增方法

This commit is contained in:
2024-03-15 09:28:09 +08:00
parent 9a0b6404cb
commit 3d5a3ddbee
2 changed files with 19 additions and 2 deletions

View File

@@ -24,7 +24,7 @@ class RefTests {
}
void apply(Ref<String> strRef) {
strRef.apply(str -> "Hello " + str);
strRef.transform(str -> "Hello " + str);
}
@Test