-
Notifications
You must be signed in to change notification settings - Fork 9
Open
Description
Example from Reason repo
let result =
switch (part) {
| `Text(value) =>
if (String.length(workingLine)
+ String.length(lastDelim)
+ String.length(value) <= cols) {
(message, workingLine ++ lastDelim ++ value, "");
} else {
(message ++ "\n" ++ workingLine, value, "");
}
| `Delim(g) => (message, workingLine, Re.Group.get(g, 0))
};
Metadata
Metadata
Assignees
Labels
No labels