# Exercise: A Tiny CLI Summary
#
# Time to put count + at + bounds-check together into something
# that looks like a real CLI helper. The goal: a word that
# inspects the arguments and returns a one-line summary string.
#
# Behaviour:
#
#   no user args        → "no arguments provided"
#   one user arg "foo"  → "got: foo"
#   two or more args    → "got <N> arguments starting with <first>"
#
# All three branches are reachable on a real command line. Under
# `seqc test` only the first ever fires, so the test only verifies
# that your word runs.
#
# Your task: Write `summary ( -- String )`.
#
# Useful pieces:
#   args.count                                 the total
#   args.count 1 i.-                           number of *user* args
#   1 args.at                                  first user arg (if any)
#   string.concat                              ( a b -- ab )
#   int->string                                ( Int -- String )
#
# To exercise all three branches, drop your solution into a shebang
# script:
#
#   #!/usr/bin/env seqc
#   : summary ( -- String )
#       ... your implementation ...
#   ;
#   : main ( -- Int )
#       summary io.write-line
#       0
#   ;
#
#   $ chmod +x try-summary.seq
#   $ ./try-summary.seq                  → no arguments provided
#   $ ./try-summary.seq hello            → got: hello
#   $ ./try-summary.seq hello world      → got 2 arguments starting with hello
#
# When done, delete the marker line below.

# I AM NOT DONE

: summary ( -- String )
    # Your code here
    "TODO"
;

: test-runs ( -- )
    summary drop
    # Do not edit below this line
    true test.assert
;
