txt: ## uniprop.md
  uniprop
  
  Combined from primary sources listed below.
  
  # [In Cool](#___top "go to top of document")[§](#(Cool)_routine_uniprop "direct link")
  
  See primary documentation
  [in context](/type/Cool#routine_uniprop)
  for **routine uniprop**.
  
  ```raku
  multi        uniprop(Str:D, |c)
  multi        uniprop(Int:D $code)
  multi        uniprop(Int:D $code, Stringy:D $propname)
  multi method uniprop(|c)
  ```
  
  Returns the [unicode property](https://en.wikipedia.org/wiki/Unicode_character_property) of the first character. If no property is specified returns the [General Category](https://en.wikipedia.org/wiki/Unicode_character_property#General_Category). Returns a Bool for Boolean properties. A [uniprops](/routine/uniprops) routine can be used to get the property for every character in a string.
  
  ```raku
  say 'a'.uniprop;               # OUTPUT: «Ll␤»
  say '1'.uniprop;               # OUTPUT: «Nd␤»
  say 'a'.uniprop('Alphabetic'); # OUTPUT: «True␤»
  say '1'.uniprop('Alphabetic'); # OUTPUT: «False␤»
  ```
  