Artifacts using Ceylon Language Module (101)
Sort:
popular
|
newest
Library providing general-purpose mutable lists, sets, and
maps.
The following interfaces define abstract mutable collection
types:
- [[MutableList]] is a mutable [[List]],
- [[MutableSet]] is a mutable [[Set]], and
- [[MutableMap]] is a mutable [[Map]].
These interfaces define abstract sorted collection types:
- [[SortedSet]] is a sorted [[Set]], and
- [[SortedMap]] is a sorted [[Map]].
In addition, dedicated [[Stack]] and [[Queue]] interfaces
are defined, representing specialized kinds of ...
Last Release on Feb 13, 2021
A set of adaptors for types belonging to the Java language
or Java SDK. Includes:
- a set of functions for instantiating Java array types
given a stream of values, for example,
[[createJavaIntArray]], [[createJavaFloatArray]],
[[createJavaByteArray]], [[createJavaBooleanArray]],
[[createJavaObjectArray]], and
[[createJavaStringArray]],
- a set of functions for converting between Ceylon's
[[Array]] class and Java array types, for example,
[[javaIntArray]], [[javaFloatArray]], ...
Last Release on Feb 13, 2021
Contains everything required to parse and serialise JSON
data.
Sample usage for parsing and accessing JSON:
import ceylon.json {
parse, Object = Object
}
String getAuthor(String json){
value parsedJson = parse(json);
"author must be a string"
assert(is Object parsedJson, is String author = parsedJson["author"]);
return author;
}
Alternatively, this variation will result in an
[[InvalidTypeException]] instead of an [[AssertionError]]
if the input ...
Last Release on Feb 13, 2021
API for accessing hierarchical file systems. Clients use
[[Path]]s to obtain [[Resource]]s representing files or
directories.
`Path` contains many useful operations for manipulating
paths:
value path = parsePath("/Users/Trompon/Documents");
value child = path.childPath("hello.txt");
value sibling = child.siblingPath("goodbye.txt");
value parent = path.parent;
The attribute [[resource|Path.resource]] of `Path` is used
to obtain a `Resource`. It is usually necessary to narrow a ...
Last Release on Feb 13, 2021
Date and Time library for Ceylon language SDK.
This library is loosely modeled/inspired by the JodaTime/JSR-310 date/time library.
Last Release on Feb 13, 2021
This module allows you to read and write to streams, such
as files, sockets and pipes.
See the `ceylon.io` package for usage examples.
Last Release on Feb 13, 2021
This module provides an arbitrary-precision integer numeric type.
The type [[Whole|ceylon.whole::Whole]] is a first-class numeric type and
support all the usual mathematical operations:
Whole i = wholeNumber(12P);
Whole j = wholeNumber(3);
Whole n = i**j + j;
print(n); //prints 1728000000000000000000000000000000000003
Last Release on Feb 13, 2021
Ceylon Random provides:
- a pseudorandom number generator ([[DefaultRandom]]),
- toplevel utility functions to shuffle streams or arrays ([[randomize]]
and [[randomizeInPlace]]), and
- an easy to implement interface for use by third party random number generators
([[Random]]).
To generate random numbers, create and use an instance of [[DefaultRandom]]:
// Create a random number generator
value random = DefaultRandom();
// Print a pseudorandom Float in the range 0.0 to 1.0:
print ...
Last Release on Feb 13, 2021
This module allows you to convert between text and binary forms of data.
For efficiency of I/O (see the `ceylon.io` module), [[Buffer]]s are the core
representation which [[ceylon.buffer.codec::Codec]]s output from the
encode/decode operations, but it's still easy to get more general types like
[[Array]]s and [[String]]s. Input to the operations can be any stream type.
[[ceylon.buffer.codec::Codec]]s are symmetrical, as any data that is
[[encode|ceylon.buffer.codec::StatelessCodec.encode]]d ...
Last Release on Feb 13, 2021