Home › Forums › kdb+ › Challenge 1 – Triangle Font › Re: Challenge 1 – Triangle Font
-
q){x#’x}1+til 4
,1
2 2
3 3 3
4 4 4 4
q)tf:{x#’x}1+til ::
Breaking it down
1+til
gives us the natural numbers to whatever{x#'x}
gives us N of each N- Suffixing the three unaries with
::
gives us the composition to be known astf
Nice challenge! Who would like to come to another Vector Dojo?