![PyPI Now Supports iOS and Android Wheels for Mobile Python Development](https://cdn.sanity.io/images/cgdhsj6q/production/96416c872705517a6a65ad9646ce3e7caef623a0-1024x1024.webp?w=400&fit=max&auto=format)
Security News
PyPI Now Supports iOS and Android Wheels for Mobile Python Development
PyPI now supports iOS and Android wheels, making it easier for Python developers to distribute mobile packages.
Javascript Monad and Monad Transformer Collection
Collection of simple monad and monad transformers that implement Fantasy Land's interfaces.
Example is in Khepri but regular js works fine too.
with
import 'akh::list' List,
import 'akh::trans::state' StateT
in {
// Define a new monad using the state transformer on the list monad.
var M = StateT (List);
var run = StateT.runStateT \>> List.runList;
// Create a stateful computation
var c =
M.of(1) // simple value
// modify State
.chain(\x ->
M.modify \ s -> s + x + 'xyz')
// Branch states
.concat(
M.put('new_state').map(\ -> 3),
M.of 10,
M.get // get the current state)
// And operate on them
.map(_ +, 'aa');
// Run the computation to get list of state value pairs
run(c, 'initial_state');
[
{'x': '1aa', 's': 'state1xyz'},
{'x': '3aa', 's': 'new_state'},
{'x': '10aa', 's': 'state1xyz'}
{'x': 'state1xyzaa', 's': 'state1xyz'}
]
}
Node files live in dist_node
$ npm install akh
Node files live in dist
requirejs.config({
paths: {
'akh': './dist'
}
});
require(['akh/list'], function(List) {
...
});
akh::trans::identity
- Transforms a monad to itself. (Monad, Functor, Applicative Functor)akh::trans::state
- State transformer. (Monad, Monoid, Functor, Applicative Functor)akh::trans::list
- List transformer. (Monad, Monoid, Functor, Applicative Functor)akh::trans::cont
- Continuation transformer. (Monad, Functor, Applicative Functor)akh::trans::dcont
- Delimited continuation transformer. (Monad, Functor, Applicative Functor)akh::trans::either
- Either transformer. (Monad, Monoid, Functor, Applicative Functor)akh::trans::error
- Error transformer. (Monad, Monoid, Functor, Applicative Functor)akh::unique
Add unique int to monad (Monad, Monoid, Functor, Applicative Functor)akh::identity
- Identity computation. (Monad, Functor, Applicative Functor)akh::state
- Stateful computation. (Monad, Functor, Applicative Functor)akh::list
- List computation. (Monad, Monoid, Functor, Applicative Functor)akh::cont
- Continuation computation. (Monad, Functor, Applicative Functor)akh::dcont
- Delimited continuation computation. (Monad, Functor, Applicative Functor)akh::either
- Either computation. (Monad, Functor, Applicative Functor)akh::error
- Error computation. (Monad, Functor, Applicative Functor)akh::trampoline
Trampolined computation (Monad, Functor, Applicative Functor)akh::unique
Get Unique int (Monad, Monoid, Functor, Applicative Functor)Improvement and additions to Akh are welcome. Please report any issues or send a pull request.
Akh is written in Khepri. Khepri is an ECMAScript derived language
focused on functional programming that compiles to Javascript.
Khepri sources are in lib
directory with node output in dist_node
and AMD output in dist
.
# install khepri
$ npm install -g khepri
# Compile all Khepri files
$ npm run build
# Run tests
$ npm test
# While developing, auto compile changed files
$ khepri -w lib -o dist_node --package_manager=node
1.0.0 - April 1, 2014
structures
now expect the method version of binary functions.FAQs
Monad and Monad Transformer Collection
The npm package akh receives a total of 524 weekly downloads. As such, akh popularity was classified as not popular.
We found that akh demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
PyPI now supports iOS and Android wheels, making it easier for Python developers to distribute mobile packages.
Security News
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.