make libPath part of Prelude

This commit is contained in:
2021-10-22 16:26:19 -04:00
parent e16a37044a
commit 40e686f95e
5 changed files with 9 additions and 8 deletions

View File

@@ -581,6 +581,11 @@ class Prelude {
#end
}
// Get the path to a haxelib the user has installed
public static function libPath(haxelibName:String) {
return assertProcess("haxelib", ["libpath", haxelibName]).trim();
}
public static function filter<T>(l:Iterable<T>, ?p:(T) -> Bool):kiss.List<T> {
if (p == null)
p = Prelude.truthy;