Smart Contract

FantastecUtils

A.4bbff461fa8f6192.FantastecUtils

Deployed

14h ago
Feb 28, 2026, 02:27:40 AM UTC

Dependents

0 imports
1access(all) contract FantastecUtils {
2    access(all) fun splitString(input: String, delimiter: String): [String] {
3        let parts: [String] = []
4        var currentPart = ""
5
6        for char in input {
7            if char == delimiter[0] {
8                if currentPart != "" {
9                    parts.append(currentPart)
10                    currentPart = ""
11                }
12            } else {
13                currentPart = currentPart.concat(char.toString())
14            }
15        }
16
17        if currentPart != "" {
18            parts.append(currentPart)
19        }
20
21        return parts
22    }
23}
24