Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
Quafadas committed Jan 3, 2025
1 parent eb75f92 commit c2b7458
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
8 changes: 2 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,10 +52,6 @@ See tests;
- As I don't _really_ understand how it works, it's unlikely to get extended further...
- Extending it further is probably a really bad idea anyway

// TODO: Docs


// TODO: Docs

// TODO: Sample (graduated)

// TODO : Desktop show
// TODO: Sample (graduated)
7 changes: 6 additions & 1 deletion scautable/src/csv.scala
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,12 @@ object CSV:


extension [K <: Tuple, V <: Tuple](nt: Seq[NamedTuple[K, V]])
inline def consoleFormatNt(headers: Option[List[String]] = None, fansi: Boolean = true) =

inline def consoleFormatNt: String=
consoleFormatNt(None, true)
end consoleFormatNt

inline def consoleFormatNt(headers: Option[List[String]] = None, fansi: Boolean = true): String =
val foundHeaders = constValueTuple[K].toList.map(_.toString())
val values = nt.map(_.toTuple)
scautable.consoleFormat_(values, fansi, headers.getOrElse(foundHeaders))
Expand Down

0 comments on commit c2b7458

Please sign in to comment.