# D.1 Built-in functions

> 

Web page: https://pseudolearn.app/en/spec/apendice/funciones

Every built-in function with its name in each profile, its signature and its family.

| Family | Spanish | English | Parameters | Result |
| --- | --- | --- | --- | --- |
| bytes | `Bytes` | `Bytes` |  | bytes |
| bytes | `BytesDesdeTexto` | `bytesFromText` | text | bytes |
| bytes | `En` | `at` | integer | integer |
| bytes | `Longitud` | `length` |  | integer |
| bytes | `Segmento` | `segment` | integer, integer | bytes |
| bytes | `TextoUtf8` | `utf8Text` |  | text |
| bytes | `Unir` | `join` | bytes | bytes |
| collections | `Copiar` | `copy` | anyClass | sameAsFirstArgument |
| collections | `Instantanea` | `snapshot` | anySnapshot | immutableOfFirstArgument |
| input and output | `Abrir` | `open` | text, text | file |
| input and output | `AgregarBytes` | `appendBytes` | bytes | integer |
| input and output | `AgregarTexto` | `appendText` | text | integer |
| input and output | `Borrar` | `delete` | text | boolean |
| input and output | `Cerrar` | `close` |  | boolean |
| input and output | `Cerrar` | `close` |  | boolean |
| input and output | `CrearDirectorio` | `createDirectory` | text | boolean |
| input and output | `EscribirBytes` | `writeBytes` | bytes | integer |
| input and output | `EscribirError` | `writeError` | text | integer |
| input and output | `EscribirTexto` | `writeText` | text | integer |
| input and output | `EscribirTexto` | `writeText` | text | integer |
| input and output | `EsDirectorio` | `isDirectory` | text | boolean |
| input and output | `EstablecerCodigoSalida` | `setExitCode` | integer | integer |
| input and output | `Existe` | `exists` | text | boolean |
| input and output | `LeerBytes` | `readBytes` |  | bytes |
| input and output | `LeerTexto` | `readText` |  | text |
| input and output | `Listar` | `list` | text | text_list |
| input and output | `Obtener` | `get` | text | optional_text |
| input and output | `Renombrar` | `rename` | text, text | boolean |
| input and output | `SolicitarArgumentos` | `requestArguments` |  | arguments |
| input and output | `SolicitarConsola` | `requestConsole` |  | console |
| input and output | `SolicitarDirectorio` | `requestDirectory` | text | directory |
| input and output | `SolicitarEntorno` | `requestEnvironment` |  | environment |
| input and output | `Subdirectorio` | `subdirectory` | text, text | directory |
| input and output | `Valores` | `values` |  | text_list |
| JSON | `AnalizarJson` | `parseJson` | text | json_result |
| JSON | `ArregloJson` | `jsonArray` |  | json_value |
| JSON | `Campo` | `field` | text | optional_json_value |
| JSON | `Claves` | `keys` |  | text_list |
| JSON | `ComoCadena` | `asText` |  | optional_text |
| JSON | `ComoEntero` | `asInteger` |  | optional_integer |
| JSON | `ComoLogico` | `asBoolean` |  | optional_boolean |
| JSON | `ComoReal` | `asReal` |  | optional_real |
| JSON | `ConCampo` | `withField` | text, json_value | json_value |
| JSON | `ConElemento` | `withElement` | json_value | json_value |
| JSON | `Elemento` | `element` | integer | optional_json_value |
| JSON | `JsonCadena` | `jsonString` | text | json_value |
| JSON | `JsonEntero` | `jsonInteger` | integer | json_value |
| JSON | `JsonLogico` | `jsonBoolean` | boolean | json_value |
| JSON | `JsonNulo` | `jsonNull` |  | json_value |
| JSON | `JsonReal` | `jsonReal` | real | json_value |
| JSON | `Longitud` | `length` |  | integer |
| JSON | `ObjetoJson` | `jsonObject` |  | json_value |
| JSON | `TextoJson` | `jsonText` | json_value | text |
| JSON | `Tipo` | `kind` |  | json_kind |
| network | `Cabecera` | `header` | text | optional_text |
| network | `Cerrar` | `close` |  | boolean |
| network | `ConCabecera` | `withHeader` | text, text | http_request |
| network | `ConCuerpo` | `withBody` | bytes | http_request |
| network | `ConCuerpoTexto` | `withTextBody` | text | http_request |
| network | `ConLimiteRespuesta` | `withResponseLimit` | integer | http_request |
| network | `ConTiempoMaximo` | `withTimeout` | integer | http_request |
| network | `Cuerpo` | `body` |  | bytes |
| network | `CuerpoTexto` | `textBody` |  | text |
| network | `Enviar` | `send` | http_request | http_response |
| network | `EsExito` | `isSuccess` |  | boolean |
| network | `Estado` | `status` |  | integer |
| network | `Limitar` | `restrict` | text | network |
| network | `NombresCabeceras` | `headerNames` |  | text_list |
| network | `PeticionHttp` | `HttpRequest` | http_method, text | http_request |
| network | `Redirigida` | `redirected` | http_response | http_request |
| network | `SolicitarRed` | `requestNetwork` |  | network |
| network | `Url` | `url` |  | text |
| numbers | `abs` | `abs` | numeric | real |
| numbers | `acos` | `acos` | numeric | real |
| numbers | `AEntero` | `toInteger` | string | integer |
| numbers | `Aleatorio` | `randomBetween` | integer, integer | integer |
| numbers | `AReal` | `toReal` | string | real |
| numbers | `asen` | `asin` | numeric | real |
| numbers | `atan` | `atan` | numeric | real |
| numbers | `atan2` | `atan2` | numeric, numeric | real |
| numbers | `azar` | `random` | integer | integer |
| numbers | `AzarReal` | `randomReal` |  | real |
| numbers | `cos` | `cos` | numeric | real |
| numbers | `exp` | `exp` | numeric | real |
| numbers | `ln` | `ln` | numeric | real |
| numbers | `log10` | `log10` | numeric | real |
| numbers | `log2` | `log2` | numeric | real |
| numbers | `max` | `max` | numeric, numeric | widestNumeric |
| numbers | `min` | `min` | numeric, numeric | widestNumeric |
| numbers | `piso` | `floor` | numeric | integer |
| numbers | `rc` | `sqrt` | numeric | real |
| numbers | `redon` | `round` | real | integer |
| numbers | `sen` | `sin` | numeric | real |
| numbers | `tan` | `tan` | numeric | real |
| numbers | `techo` | `ceil` | numeric | integer |
| numbers | `trunc` | `trunc` | real | integer |
| text | `AMayusculas` | `toUpper` | text | text |
| text | `AMinusculas` | `toLower` | text | text |
| text | `ATexto` | `toText` | anyPrimitive | string |
| text | `CaracterDesde` | `charFromCode` | integer | character |
| text | `CaracterEn` | `charAt` | string, integer | character |
| text | `CodigoDe` | `charCode` | character | integer |
| text | `Concatenar` | `concat` | string, string | string |
| text | `Contiene` | `contains` | string, string | boolean |
| text | `Decimales` | `decimals` | real, integer | text |
| text | `Dividir` | `split` | string, string | stringVector |
| text | `EmpiezaCon` | `startsWith` | string, string | boolean |
| text | `Longitud` | `length` | string | integer |
| text | `PosicionDe` | `indexOf` | string, string | optionalInteger |
| text | `Recortar` | `trim` | string | string |
| text | `Reemplazar` | `replace` | string, string, string | string |
| text | `RellenarDerecha` | `padRight` | text, integer, text | text |
| text | `RellenarIzquierda` | `padLeft` | text, integer, text | text |
| text | `Subcadena` | `substring` | string, integer, integer | string |
| text | `TerminaCon` | `endsWith` | string, string | boolean |
| text | `Unir` | `join` | stringVector, string | string |
| time | `Ahora` | `now` |  | integer |
| time | `AhoraLocal` | `localNow` |  | date_time |
| time | `AnalizarFechaHora` | `parseDateTime` | text | optional_date_time |
| time | `Anio` | `year` |  | integer |
| time | `DesplazamientoUtc` | `utcOffset` |  | integer |
| time | `Dia` | `day` |  | integer |
| time | `DiaDeLaSemana` | `weekday` |  | integer |
| time | `Esperar` | `wait` | integer | integer |
| time | `FechaHoraDe` | `dateTimeOf` | integer, integer, integer, integer, integer, integer, integer, integer | optional_date_time |
| time | `FechaHoraUtc` | `dateTimeUtc` | integer | date_time |
| time | `FormatoIso` | `isoFormat` |  | text |
| time | `FormatoIsoPreciso` | `isoFormatPrecise` |  | text |
| time | `Hora` | `hour` |  | integer |
| time | `Instante` | `instant` |  | integer |
| time | `Mes` | `month` |  | integer |
| time | `Minuto` | `minute` |  | integer |
| time | `Nanosegundo` | `nanosecond` |  | integer |
| time | `Segundo` | `second` |  | integer |
| time | `SolicitarReloj` | `requestClock` |  | clock |
| time | `SolicitarTemporizador` | `requestTimer` |  | timer |
