Skip to content

Commit

Permalink
Update std.lm
Browse files Browse the repository at this point in the history
  • Loading branch information
KajizukaTaichi committed Jan 11, 2025
1 parent 3a7cf08 commit 09258ea
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/lib/std.lm
Original file line number Diff line number Diff line change
Expand Up @@ -78,10 +78,10 @@ const reverse: function = λt.{

const trim: function = λt.{
const trimStart: function = λt.{
let isFirstChar = 0;
let result = "";
let delimiter = [" ", " ", "\n", "\t", "\r"];
let [isFirstChar, result] = [0, ""];
for c in (t as list) {
if ([" ", " ", "\n", "\t", "\r"] :: [c]) {
if (delimiter :: [c]) {
if (isFirstChar == 1) {
result += c;
}
Expand Down

0 comments on commit 09258ea

Please sign in to comment.