1
0
Fork 0
forked from fun/fun

Added two more examples about classes and console stuff and some stub code. (0.37.46)

This commit is contained in:
Johannes Findeisen 2026-01-13 00:26:41 +01:00
commit 95a0582608
5 changed files with 69 additions and 2 deletions

View file

@ -1,3 +1,12 @@
/*
* This file is part of the Fun programming language.
* https://fun-lang.xyz/
*
* Copyright 2025 Johannes Findeisen <you@hanez.org>
* Licensed under the terms of the Apache-2.0 license.
* https://opensource.org/license/apache-2-0
*/
/*
* Console utilities: prompt, ask, and yes/no helpers built on input().
*/
@ -38,3 +47,6 @@ class Console()
else if (a == "n" || a == "no")
return 0
// otherwise loop again
fun progress(this, length)
return length