Extract properties block parser to file
This commit is contained in:
@@ -1,5 +1,9 @@
|
||||
import std/sugar
|
||||
import fp/maybe
|
||||
import results
|
||||
|
||||
template isSome*(self: Result): bool = self.isOk()
|
||||
template isNone*(self: Result): bool = self.isErr()
|
||||
|
||||
proc findMaybe*[T](xs: seq[T], fn: T -> bool): Maybe[T] =
|
||||
for x in xs:
|
||||
|
||||
Reference in New Issue
Block a user